Skip to main content
Version: 2.30

Scheduling Cycle Executions

Cycle may be scheduled to run by using Windows Task Scheduler without having to manually write to the command line.

Windows Task Scheduler​

Windows Task Scheduler

To use Windows Task Scheduler to schedule Cycle to run based on a set time or event, complete the following steps:

  1. Open Windows Task Scheduler.
  2. Create a task.
  3. In the Create Task window that appears, give the new task a name and description in the General tab.
    Windows 10

    If you are using Windows 10, click Change User or Group... and enter SYSTEM into the Object name to select box.

  4. On the Triggers window, set a time or event to start the Cycle execution.
  5. On the Actions window, create a new Action.
    • Set the Action to be Start a program and set the Program/script to be the location of where cycle-cli.exe is installed.
    • Add arguments in the same format as the arguments for Cycle CLI.
    • Authenticate on the run itself, using --clientid and --client-credential. A scheduled task has no browser available for an interactive sign-in. See Running Cycle CLI in Pipelines.
    • Alternatively, run cycle-cli auth login --token [arg] ahead of the scheduled run to store a session the task can reuse.
    • Set your credentials as environment variables and rotate them regularly.
    • Set the Starts in field to be the working directory the execution will start from and where log files will be created.
Single instance

Only one instance of Cycle can be run on a single server.