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

scheduled_task : Cannot change from by-weekday to by-date

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Low
    • Resolution: Unresolved
    • None
    • None
    • scheduled_task
    • None
    • Windows
    • Needs Assessment
    • Needs Assessment

    Description

      As described here as  well, when a by-weekday task is already scheduled, it is unable to change to a by-date schedule.

       

      Error: Neither 'day_of_week' nor 'which_occurrence' can be specified when creating a monthly date-based trigger                     
      Error: /Stage[main]/Windowsupdate::Config/Scheduled_task[Run Windows Update]/trigger: change from [  
        {                                                                                                                                     
          'schedule' => 'monthly',                                                                                                            
          'months' => [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],                                                                                
          'which_occurrence' => 'second',                                                                                                     
          'day_of_week' => ['saturday'],                                                                                                         
          'start_date' => '2018-8-7',                                                                                                         
          'start_time' => '13:15',                                                                                                            
          'enabled' => true,                                                                                                                  
          'minutes_interval' => 80,                                                                                                           
          'minutes_duration' => 560,                                                                                                          
          'index' => 0                                                                                                                      
        }] to [                                                                                                                             
        {                                                                                                                                     
          'schedule' => 'monthly',                                                                                                            
          'start_time' => '13:15',                                                                                                            
          'months' => [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11],                                                                                    
          'on' => 15,                                                                                                                         
          'minutes_interval' => '80',                                                                                                         
          'minutes_duration' => '560'                                                                                                       
        }] failed: Neither 'day_of_week' nor 'which_occurrence' can be specified when creating a monthly date-based trigger 
      

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            DidgeriDude Dirk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Zendesk Support