cameronmaske / celery-once

Celery Once allows you to prevent multiple execution and queuing of celery tasks.
https://pypi.python.org/pypi/celery_once/
BSD 2-Clause "Simplified" License
661 stars 90 forks source link

Feature request: Queue last #129

Open steverecio opened 3 years ago

steverecio commented 3 years ago

As it's currently implemented, celery-once will run the first instance of the task and block subsequent calls until the timeout window. Is it possible to get it to run the last task queued within a timeout window? For example, if you run a task with a 10 minute delay, and then attempt to queue the same task with the same signature, celery-once will revoke the first task and then the second task will run unless another call bumps the timeout even further?