Problem Note 67568: Weekly cron schedules in SASĀ® Job Flow Scheduler are off by one on Linux systems when a specific day is selected
When you schedule a weekly task on a specified day with SAS Job Flow Scheduler in a non-grid environment, the day that is actually scheduled in cron is a day later than expected. For example, Sunday in crontab is day 0, but SAS Job Flow Scheduler uses day 1 instead. Other days are similarly off by one.
You can verify that you are affected by this issue with the following steps:
- Deploy a new flow to SAS Job Flow Scheduler.
- Schedule the flow with a recurrence of Weekly. Select the interval day as Sunday.
- Review the crontab -l output on the scheduling server, typically the compute environment.
- The cron job should be listed in this format: minutes hours * * 0 job command.
However, if you are impacted by this issue, you see that the crontab is scheduled with a 1 (for Monday) in the day field instead of the 0 (for Sunday) that you expect to see.
Workaround
You can work around this issue by using the command crontab -e -u user-name to manually edit the crontab to use the correct day.
A hot fix is planned for this issue.
Operating System and Release Information
SAS System | SAS Job Flow Scheduler | Linux for x64 | 9.46 | 9.47 | 9.4 TS1M6 | 9.4 TS1M7 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
If you select a specific day for a time event in the Schedule Manager, the event is scheduled a day later in crontab.
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2021-06-02 16:16:33 |
Date Created: | 2021-03-08 14:54:15 |