I realized that when I enable a disabled task that has already passed its execution time, it is execute immediately.
Is that the expected behaviour?
I expected it wouldn't run automatically.
I'd like to use this enable/disable option as a a pause/play feature.
- Celery Version: 4.4.2
- Celery-Beat Version: 1.5.0
Exact steps to reproduce the issue:
- Create a task to run at a given time (eg: 5pm);
- Disable it;
- Minutes later, enable it;
- The task should run immediately.
How can I avoid the task to run automatically.