Your Django transaction committed. The Celery task never got sent.
You save a document, then queue its publication. The happy path is two lines:
document.save()
# The process might die here. Nothing has reached Celery yet.
publish_document.delay(document.pk)
Moving