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
Nautobot version (Docker tag too if applicable): 1.4.2
Python version: 3.8.13
Steps to Reproduce
Schedule a weekly job in Nautobot
Let the job run twice
Notice how the difference between executions was only 6 days, instead of 7 days
Maybe there's a reason for this that I am just not seeing, but I fully expected my weekly job to execute exactly 7 days after the previous run, and not 6 days.
Check the following screenshot. I have a couple more jobs that behaved the same, i.e. executed after 6 days and not 7.
The text was updated successfully, but these errors were encountered:
Confirmed. The scheduled job to_cron method is passing datetime.datetime.weekday() to celery.schedules.crontab.day_of_week
datetime.datetime.weekday:
Monday = 0
| weekday(...)
| Return the day of the week represented by the date.
| Monday == 0 ... Sunday == 6
celery.schedules.crontab.day_of_week:
Sunday = 0
| .. attribute:: day_of_week
|
| - A (list of) integers from 0-6, where Sunday = 0 and Saturday =
| 6, that represent the days of a week that execution should
| occur.
| - A string representing a Crontab pattern. This may get pretty
| advanced, like ``day_of_week='mon-fri'`` (for weekdays only).
| (Beware that ``day_of_week='*/2'`` does not literally mean
| 'every two days', but 'every day that is divisible by two'!)
|
Environment
Steps to Reproduce
Maybe there's a reason for this that I am just not seeing, but I fully expected my weekly job to execute exactly 7 days after the previous run, and not 6 days.
Check the following screenshot. I have a couple more jobs that behaved the same, i.e. executed after 6 days and not 7.
The text was updated successfully, but these errors were encountered: