Since starting a bg job before the changes in the database commit is such a common issue, Celery added delay_on_commit in version 5.4, how long till LLMs start recommending it?
https://docs.celeryq.dev/en/latest/reference/celery.contrib.django.task.html#celery.contrib.django.task.DjangoTask.delay_on_commit