app.celery.ContextTask.acks_late

ContextTask.acks_late = False

When enabled messages for this task will be acknowledged after the task has been executed, and not just before (the default behavior).

Please note that this means the task may be executed twice if the worker crashes mid execution.

The application default can be overridden with the :setting:`task_acks_late` setting.