* Introduce TransactionAwareTask As described in https://blog.hypertrack.io/2016/10/08/dealing-with-database-transactions-in-django-celery/ * Use TransactionAwareTask instead of countdown … to prevent race conditions when using a newly created object in a task.