Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-6268

scheduled_task : Cannot switch from a monthly ( by weekday ) scheduled_task to a monthly ( by date ) scheduled_task

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: scheduled_task
    • Labels:
      None
    • Template:
      MODULES Bug Template
    • Acceptance Criteria:
      Hide

      able to switch from a monthly ( by weekday ) scheduled_task to a monthly ( by date ) scheduled_task

      Create a manifest with a monthly by weekday sched. task and apply to create the task. Then create another manifest that update the trigger to monthly by date and apply. Should succeed. Puppet resource to ensure data that returns is correct.

      Show
      able to switch from a monthly ( by weekday ) scheduled_task to a monthly ( by date ) scheduled_task Create a manifest with a monthly by weekday sched. task and apply to create the task. Then create another manifest that update the trigger to monthly by date and apply. Should succeed. Puppet resource to ensure data that returns is correct.
    • Team:
      Windows
    • Story Points:
      1
    • Sprint:
      Windows Kanban
    • QA Risk Assessment:
      Needs Assessment

      Description

      The Problem

      If you make a scheduled task using the on in the trigger attribute you cannot switch to using day_of_week and which_occurence. The opposite is also not allowed.

      When you have an existing scheduled resource on the system and you edit the puppet code to be the opposite type of monthly trigger you will receive an error like...

      Puppet (err): Neither 'day_of_week' nor 'which_occurrence' can be specified when creating a monthly date-based trigger 
      

      However, if you change the name of the scheduled_task and execute the same puppet code it will work.

      Workaround

      The simplest thing to do is ensure => absent on the old scheduled task name and then make a new one with the same puppet code and a different name.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              michael.lombardi Michael Lombardi
              Reporter:
              nick.walker Nick Walker
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support