microblog icon indicating copy to clipboard operation
microblog copied to clipboard

race condition in launch_task function

Open miguelgrinberg opened this issue 5 years ago • 0 comments

The launch_task() function starts the background task in the RQ worker, and then adds a Task entry to the database. In general this is okay, but there is a chance that the worker may try to load the Task instance before the main server writes it to the database.

miguelgrinberg avatar Apr 04 '20 16:04 miguelgrinberg