2

Setup: Celery 3.1, broker=RabbitMQ, backend=Redis.

Scenario: Having a task is state=STARTED (running) my worker is being restarted. I'm getting worker: Warm shutdown (MainProcess) message (stdout). The worker successfully restarted but the task is stuck on STARTED state (monitored via flower) and nothing happen.

Desired state: I wish that the stuck task will run again (or fail before the shutdown) - and not be ignored and left as 'STARTED' forever.

Colwin
  • 2,655
  • 3
  • 25
  • 25
ItayB
  • 10,377
  • 9
  • 50
  • 77

1 Answers1

3

Using CELERY_ACKS_LATE = True solved the problem

ItayB
  • 10,377
  • 9
  • 50
  • 77
  • Could you elaborate please? How do I use that? Where should I put it? – charelf Jan 31 '23 at 09:39
  • It's part of Celey's configuration: https://docs.celeryq.dev/en/stable/userguide/configuration.html#std-setting-task_acks_late – ItayB Jan 31 '23 at 11:06