celery-once
celery-once copied to clipboard
Bug: Issue with shared_task
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.
Passing once={'graceful': True}
to shared_task
makes those tasks undiscoverable.
Any comments on this? @swapnilsm did you get it working?
@DiegoGallegos4 We finally had to move to passing those parameters like these.
app.tasks['project.tasks.task1'].signature((), once={'graceful': True}).apply_async()