Schedule a Flow

Scheduling a Flow is the action of telling Hero Platform_ when to run an automation.

You can schedule a Flow from the Flow overview page.

Schedule a Flow

To schedule a Flow:

  1. From the Flow overview page, click the gear icon in the Settings column next to the Flow you want to schedule.
    Click SCHEDULE.

  2. Select a time to schedule the Flow from the drop-down menu.
    • Now - Select to have the Flow run as soon as you click SAVE.
    • Interval - Select to enter a value in minutes and seconds how often the Flow should run.
      • A Flow can run in intervals beginning at 15 seconds.
      • A Flow scheduled to run on an interval does not run until the previous Flow execution has completed.
        • An interval scheduled Flow that is waiting for a Flow to finish will run at the next scheduled interval time.  
    • Once - Select to enter a value in minutes or on a specific date/time for which the Flow should run a single time.
    • Daily - Select to have the Flow run once a day. Enter a specific time during the day the Flow begins to run.
    • Weekly - Select to have the Flow run once on a specific day(s) of the week. Select the day(s) and enter a specific time during the day the Flow begins to run.
    • Monthly - Select to have the Flow run once on a specific day(s) of the month. Select the day(s) and enter a specific time during the day the Flow begins to run.
    • Cron Pattern - Select to have the Flow run according to an entered cron pattern. A human readable text appears below an excepted cron pattern.
      • Example: 1 0/5 14-18 * * ? would run at 1 second past the minute, every 5 minutes, between 14:00 and 18:59

    The cluster's date and time values on which Hero Platform_ is running are the values used for scheduled Flows. 

  3. When complete, click SAVE.

Making Edits to a Flow That Has Been Scheduled

After editing and saving a Flow that had already been scheduled, it is necessary to stop that Flow before the new edits become active. After stopping the Flow, it can be rescheduled and the changes made to the Flow are applied.

  • A Flow can run in intervals beginning at 15 seconds.
  • A Flow scheduled to run on an interval does not run until the previous Flow has completed.
    • An interval scheduled Flow that waits for a Flow to finish runs immediately when the previous Flow completes.  

Schedule Behavior on Stopped and Started Environments 

  • When a Hero Platform_ environment is stopped, all scheduled Flows are disabled.
    • Running a migration script disables the Flow schedule when an environment stops.
  • When a Hero Platform_ environment is started, all scheduled Flows are enabled.

Flows that were scheduled at specific times while the environment was disabled do not execute. 

Flows that were scheduled before the environment was stopped that occur after the environment has been restarted execute as scheduled.  

Time Zone Changes

A scheduled Flow continues to execute on the time zone on which the schedule was set. If the time zone setting change, the new time zone is applied when the Flow is manually scheduled again.

Daylight Savings Time Changes

Interval Schedule

Scheduling with the interval schedule type always executes every "n" seconds without relation to the time of day.

Daily, Weekly, and Monthly Schedule

Periodic schedules always execute at a given time of day. When a periodic scheduled Flow is executed, Hero Platform_'s scheduler computes the next time the Flow should execute.

  • If the next execution time does not occur on a given day (due to daylight saving time adjustments), the execution trigger will be skipped.
  • If the next execution time occurs twice on a given day, the Flow will only be executed once. This is because after executing the first time, Hero Platform_ computes the next time of day to execute.