Skip to content

Update PeriodicTasks on bulk task enable/disable in admin. #492

New issue

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

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

Already on GitHub? # to your account

Merged
merged 1 commit into from
Dec 7, 2016

Conversation

bartdag
Copy link
Contributor

@bartdag bartdag commented Nov 7, 2016

Problem

When selecting the admin action "Enable/Disable selected periodic tasks", celery beat is not aware of the update and continues executing newly disabled periodic tasks and ignoring newly enabled periodic tasks.

Solution

Call PeriodicTasks.changed after the update is performed.

Remaining Question

PeriodicTask.save is overriden in djcelery, so I'm unsure if djcelery should be calling the .save() method instead of doing a bulk update of the enabled flag.

@auvipy auvipy merged commit 65d1962 into celery:master Dec 7, 2016
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants