-
Notifications
You must be signed in to change notification settings - Fork 430
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
Validate schedule objects on save for faster, more informative failures #484
Comments
is this from the discussion you opened? |
It is related to that. Yes. I was able to solve the problem that I opened the discussion about, but I it was very complicated to track down the cause. |
ok, can you check this PR #478? |
django-celery-beat/django_celery_beat/schedulers.py Lines 243 to 250 in eb2af29
|
ok if you are welcome to come with a proposed improvement with a failing test |
Summary:
When an instance of a schedule model (e.g.
CrontabSchedule
) has a field with an invalid value, no error is displayed, and the task is (silently) not added to the current schedule. If an exception occurred when trying to create the record, then the problem would be much easier to detect and then much easier to diagnose once detected.Exact steps to reproduce the issue:
CrontabSchedule
instance with an invalid value in any of its crontab fields.PeriodicTask
instance with the aboveCrontabSchedule
instance as its.crontab
value.The text was updated successfully, but these errors were encountered: