microblog
microblog copied to clipboard
race condition in launch_task function
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.