Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabling a task through 'Disable selected tasks' dropdown option does not clear 'last_run_at' field #510

Open
ellastewart opened this issue Feb 8, 2022 · 1 comment

Comments

@ellastewart
Copy link

Summary:

Disabling a task through 'Disable selected tasks' dropdown option does not clear 'last_run_at' field whereas selecting an individual task and toggling the 'Enabled' button does. When 'last_run_at' is not cleared, the task can be run on the wrong schedule when the it's re-enabled.

  • Celery Version: 4.4.0
  • Celery-Beat Version: django-celery-beat 2.1.0

Exact steps to reproduce the issue:

  1. Disable a task through selecting the issue and using 'Disable selected tasks' from the menu dropdown
  2. Wait a longer time period than the time period between scheduled tasks, and then re-enable the task
  3. The task will run immediately instead of at the right time

image

Detailed information

Please include more detailed information here, such as relevant information about your system setup, things you did to try and debug the problem, log messages, etc.

@Kirade
Copy link
Contributor

Kirade commented Feb 16, 2022

Maybe related to this PR
#501

next minor updates will fix this. (2.3.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants