Open stevecj opened 2 years ago
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 https://github.com/celery/django-celery-beat/pull/478?
@lvelvee Thanks for pasting that code that I should have included in my original description of the problem.
@auvipy I might be wrong, but I don't see that PR #478 addresses this issue of mine — though I really like what you're doing there.
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.