Uploaded image for project: 'TrueNAS'
  1. TrueNAS
  2. NAS-108476

Scheduling system seems to have changed from before?

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Engineering Closed (View Workflow)
    • Priority: Low
    • Resolution: Not Applicable
    • Affects Version/s: 12.0-RELEASE
    • Fix Version/s: N/A
    • Component/s: Tasks

      Description

      Prior to TrueNAS 12.0-RELEASE, scheduling a task for a range of dates of the month and a weekday would require both conditions to be satisfied to run, as is the case with cron jobs. For example:

      0 3 1-7,15-21 * Sun $task

      Would run $task at 3:00 am on any date of the month between 1-7 and 15-21 IF it lands on a Sunday. For example, for this month, it would run on the 5th and 19th.

      On this release, the same criteria for the task would run $task at 3:00 am on every date between 1-7 and 15-21, as well as any Sunday.

      Essentially, previously, all of the criteria had to be satisfied in an AND condition, and now, all the criteria seems to be treated as OR conditions. That's a pretty drastic change, and would seem to be a bug?

        Attachments

          Attachments

            JEditor

              Activity

                People

                Assignee:
                releng Triage Team
                Reporter:
                chiem Keith Chiem
                Watchers:
                Bonnie Follweiler, Joe Maloney, Keith Chiem
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: