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
Thank you for this package. I've found a bug when adding a monthly job.
The following code produces a cronjob with schedule 0 6 4 * 1 which will run only if the fourth day of the month is Monday:
library(cronR)
cron_add(command = 'echo test',
frequency = 'monthly',
at = '06:00',
days_of_month = 'fourth',
id = 'test job',
dry_run = TRUE,
ask = FALSE
)
At your own risk: will set the cron schedule as is: '0 6 4 * *'
Adding cronjob:
---------------
## cronR job
## id: test job
## tags:
## desc:
0 6 4 * * echo test
The text was updated successfully, but these errors were encountered:
In my case, the script ran every Monday. Best we change it to 0 X X * *? Likewise yearly could be 0 0 1 1 *. These would be more reliable across cron implementations.
Thank you for this package. I've found a bug when adding a monthly job.
The following code produces a cronjob with schedule
0 6 4 * 1
which will run only if the fourth day of the month is Monday:Result:
Workaround:
Result:
The text was updated successfully, but these errors were encountered: