Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-3400

Support every X minute and hour schedules

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Normal
    • Resolution: Duplicate
    • None
    • None
    • None
    • 3

    Description

      The windows scheduled_task resources can only run at most once per day. However, the V1 task scheduler API do make it possible to run tasks every X minutes or hours. For example, the following command will create a v1 task to run notepad every 30 minutes:

      C:\>schtasks /create /v1 /RU SYSTEM /RP * /st 14:30 /tn runevery5minutes /sc minute /mo 5 /F /tr c:\windows\system32\notepad.exe
      INFO: The schedule task "runevery5minutes" will be created under user name ("NT AUTHORITY\SYSTEM").
      WARNING: Password will be ignored for "NT AUTHORITY\SYSTEM" user.
      

      This will require a change to the type, to support `minute` and `hourly` trigger types, and changes to the provider to map that to the appropriate TASK_TRIGGER structure: http://msdn.microsoft.com/en-us/library/windows/desktop/aa383618(v=vs.85).aspx

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              josh Josh Cooper
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support