Schedule workflows
Latest Dynatrace
During the development, workflows are triggered manually until you reach the desired functionality. To automate, you want to run your workflows, automatically, of course! Workflows can be triggered either by event triggers, schedules, or API requests.
Schedules
Running workflows by schedule allows to e.g. perform the hourly data ingest or weekly audit reports. You can schedule workflows at a fixed time of day, in an interval, and with even more advanced scheduling options. Those allow you to schedule at a particular time of day, or fixed intervals, and apply flexible scheduling rules for date selection based on your custom business calendar definition.
Fixed time
Run workflows at a time of day.
- Create a new workflow (or edit an existing one) and choose the trigger type Schedule - Fixed time.
- Set the time of day you want to run the workflow at.
- optional Configure the timezone for the time of day. It will default to your browser's timezone.
- See the next scheduled executions to verify your configuration. The preview will always show it in your browser's timezone, to let you easily grasp timezone configurations different from yours
- Save changes to your workflow
Your workflow will now run every day at the configured time.
For information on how to use a scheduling rule on your schedule configuration, see Advanced scheduling.
Furthermore, fixed time schedules allow for the configuration of the earliest start date to indicate when the schedule takes effect. Similarly, you can also define when it shall end again (by default it never will) by date or the number of runs.
Time interval
Run workflows on fixed intervals.
- Create a new workflow (or edit an existing one) and choose the trigger type Schedule - Time interval.
- Set the interval in minutes you want to run the workflow on
- See the next scheduled executions to verify your configuration. The preview will always show it in your browser's timezone, to let you easily grasp timezone configurations different from yours
- Save changes to your workflow
Your workflow will now run every n
minutes.
For information on how to use a scheduling rule on your schedule configuration, see Advanced scheduling.
Furthermore, time interval schedules allow for the configuration of
- a period on a day when it shall apply (for example, between 8:00 and 17:00 only)
- an earliest start date and time to indicate when the schedule takes effect. It will default to the day of definition and the top of the hour. A 5 minute interval will run 5, 10, and 15 minutes past the hour.
- define when it ends (by default, it never will) by date or the number of runs.
Cron schedule
For basic scheduling needs and cron expressions initiated people, you can schedule workflows with timezone-aware cron expressions. This allows you to adhere to regional timezone specifcs (for example Daylight Saving Time changes).
Let’s create a workflow with a cron schedule trigger:
- Create a new workflow
- Select Cron schedule as the trigger type. By default, a cron expression in your browser locale's timezone is added
- Enter the cron expression to define the schedule.
- See the next scheduled executions to verify your configuration. The preview will always show it in your browser's timezone, to let you easily grasp timezone configurations different from yours
- Save the workflow
The schedule is active and triggers the workflow according to the cron expression.