You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been using the django_cron for scheduled jobs and it's working pretty well. While looking at getting a status back from the jobs, I tried to use the function "get_time_until_run" in the CronJobBase class.
However, "cls.schedule.run_every_mins" (line 73) will give an error if the job is scheduled to run at fixed hours, instead of at certain intervals.
Not a big issue, but I think a simple if-statement could catch it at least?
something like (to be inserted before line 67:
if cls.schedule.run_every_mins == None:
return timedelta()
that way it will at least not error.
The text was updated successfully, but these errors were encountered:
I've been using the django_cron for scheduled jobs and it's working pretty well. While looking at getting a status back from the jobs, I tried to use the function "get_time_until_run" in the CronJobBase class.
However, "cls.schedule.run_every_mins" (line 73) will give an error if the job is scheduled to run at fixed hours, instead of at certain intervals.
Not a big issue, but I think a simple if-statement could catch it at least?
something like (to be inserted before line 67:
that way it will at least not error.
The text was updated successfully, but these errors were encountered: