celery-once icon indicating copy to clipboard operation
celery-once copied to clipboard

Bug: Issue with shared_task

Open swapnilsm opened this issue 7 years ago • 3 comments

Doesn't work with shared_task. When used with shared_task, the task doesn't get auto-discovered. Just importing the QueueOnce makes all the tasks undiscoverable.

swapnilsm avatar Aug 24 '17 17:08 swapnilsm

Passing once={'graceful': True} to shared_task makes those tasks undiscoverable.

swapnilsm avatar Aug 24 '17 18:08 swapnilsm

Any comments on this? @swapnilsm did you get it working?

DiegoGallegos4 avatar Feb 23 '18 18:02 DiegoGallegos4

@DiegoGallegos4 We finally had to move to passing those parameters like these. app.tasks['project.tasks.task1'].signature((), once={'graceful': True}).apply_async()

swapnilsm avatar Feb 26 '18 10:02 swapnilsm