orchestrator
2023.10
false
UiPath logo, featuring letters U and I in white

Orchestrator User Guide

Automation CloudAutomation Cloud Public SectorAutomation SuiteStandalone
Last updated Dec 4, 2024

Creating a time trigger

Important: Time triggers that are created at design-time using time trigger activities can be further configured at process-creation time, in Orchestrator, as these types of triggers are identified as package requirements.
  1. In a folder, navigate to Automations > Triggers and on the Time Triggers page, click Add a new trigger. The Create Time Trigger page is displayed.
  2. In the Name field, add a name for the trigger to easily identify it.
  3. From the Process Name drop-down menu, select the process you want to configure a time trigger for.
  4. From the Job Priority drop-down menu, select the priority of the job. The default value is Inherited, meaning that the job priority is the same as the one defined for the selected process.
  5. From the Runtime type drop-down menu, select the runtime used to execute the jobs that are launched by the trigger.
  6. On the Execution Target tab, select your jobs' allocation mechanism and execution target.

    Description

     

    Dynamic allocation

    Allocate Dynamically

    Dynamic allocation with no explicit account and machine selection allows you to execute a foreground process multiple times under the account and machine that become available first. Background processes get executed on any account, regardless if it's busy or not, as long as you have sufficient runtimes.

    Using the Allocate Dynamically option you can execute a process up to 10000 times in one job.

     

    Account

    The process is executed under a specific account. Specifying only the account results in Orchestrator allocating the machine dynamically. Specifying both the account and the machine template means the job launches on that very account-machine pair.

     

    Machine

    The process is executed on one of the host machines attached to the selected machine template. Specifying only the machine template results in Orchestrator allocating the account dynamically. Specifying both the account and the machine template means the job launches on that very account-machine pair.

    Note: Make sure the required runtime licenses to execute the job are allocated to the associated machine template.
     

    Hostname

    After selecting a machine template, the Hostname option is displayed, allowing you to select the desired workstation/robot session to execute the process.

    All available sessions in the active folder are displayed, either unconnected, disconnected, or connected.

    Note: Only unattended runtimes can be used to configure the mapping. Make sure the required runtime licenses to execute the job are allocated to the associated machine template.

    Select valid account-machine mappings

    The process can be executed on specific account-machine pairs. Learn more about account-machine mappings.

    Note:
    • A warning is displayed upon selecting a hostname that is not active (i.e., with the Unresponsive or Disconnected status).

    • Accounts part of mappings that are employed in triggers cannot be deleted or unassigned from the folder the trigger resides in. Make sure the account is not set as an execution target in a trigger so you can delete them.

    Note: A warning is displayed upon selecting a hostname that is not active (i.e, with the Unresponsive or Disconnected status). Jobs scheduled to be executed by the inactive session remain in a Pending state until the corresponding connection to Orchestrator is made.
    • To acknowledge your selection of the inactive hostname, click Confirm.

    • To go back and select another hostname, click Cancel.

    Configuring the same trigger with the same account-machine mapping, but with an additional hostname selection doubles the number of jobs to be executed.
    • For example, say you configured a trigger T1 with the account A1 mapped to the machine template MT1. A number of ten jobs are queued for execution in this configuration.

      Later on, you configure the same trigger T1 with the account A1 mapped to the machine template MT1, but now you also select a hostname H1. The same ten jobs are queued again for this case, as Orchestrator interprets the configuration as new.

  7. On the Arguments tab, provide values for input arguments if your process has any. More details about input and output arguments.
  8. From the Timezone drop-down menu, select the time zone according to which the trigger is to be set off.
    Note:
    • The trigger time zone is not dependent on the tenant time zone. You can set a different time zone for your time trigger execution.
    • Locations that use daylight saving time (DST) are listed in their UTC offset. The UTC offset is not increased when DST is in effect. For example, during the DST period, the London time zone is displayed as UTC+00:00.
    • You do not have to adjust the time zone in order to account for DST, as Orchestrator's schedule mechanism automatically takes into account when launching a job. A job scheduled to run at 12:00 runs at 12:00 both in winter and summer.
  9. Select the execution frequency of the trigger (Minutes, Hourly, Daily, Weekly, Monthly, Advanced). On the right side of this section, configure the details depending on the chosen option (frequency, exact time, or a cron expression). Orchestrator uses an open-source library to parse and display cron descriptions, which can be found here.
    Note:

    Cron expressions can be used in combination with non-working days. This means that, if a trigger is configured via a cron expression to run on a day that falls on an excluded date, that day is skipped, and the trigger is rescheduled for the next available day, and so on.

  10. Choose the frequency with which you want the trigger to execute, in minutes.
    Important:

    The cron standard employed by our cron expressions uses a time system based on 60 minutes to an hour. This means that the only way it can execute a trigger at the exact interval configured in the Repeat every field is if the value of that interval is a divisor of 60. Otherwise, the recurrence will not entirely abide by the number of minutes in that field, thus causing execution discrepancies. To avoid this, we recommend adjusting your trigger settings or using event triggers.

    Example: You set a trigger to be executed every 21 minutes, and you start a job at 9:00. This renders the following execution schedule:
    • The first job starts at 9:00.
    • The second job starts at 9:21.
    • The third job starts at 9:42.
    • The fourth job starts at 10:00.

    The reason why the fourth job starts after 18 minutes instead of 21 is that the cron component matches every 21st item from a set of minutes between 1 and 59. In this example, these items are 00, 21, 42.

  11. From the Non-working days restrictions drop-down menu, select a non-working days calendar, if you want your trigger to stop firing on certain non-business days. More details about non-working days.
  12. Turn on the Schedule ending of job execution toggle to select a job termination strategy.
    Note:
    • The amount of time specified here elapses according to the specifications, even if the job is queued. For example, if you schedule a job to run at 1 p.m. and set it to stop after 20 minutes, the job stops at 1:20 p.m. even if it had stayed in a queue until 1:15 p.m., and then started.
    • The Schedule ending of job execution options of a trigger are preserved for manually started jobs.

    For example, say you created the trigger T1 and you activated the following job ending schedules:

    • Schedule ending of job execution:Stop a job after 10 mins
    • Schedule automatic "Kill", if the job does not stop:Kill job after 2 mins

      On the Automations > Triggers page, when you click Start a Job Now for the trigger T1, the Start Job page opens with the job ending schedules already applied, the same ones you configured when you created the trigger.

    Example: If you schedule to stop a Pending or Running job after 2 hours and also configure to kill the same job after 3 hours, the job will be killed after 5 hours. This happens because, first, the signal is sent to Orchestrator that the job was indeed stopped after 2 hours. Once the signal has been received, the kill job action is triggered to occur in 3 hours, thus resulting a total of 5 hours.

    • Select Stop from the drop-down - attempts to gracefully end the execution after the defined time interval has passed since the job is stuck in a Pending or Running state (set the time to a minimum of 1 minute, maximum of 10 days, 23 hours and 59 minutes);
      Example: Orchestrator will attempt to stop jobs that have been stuck for at least 10 minutes in Pending or Running.
      docs image
    • Select Kill from the drop-down - attempts to forcefully end the execution after the defined time interval has passed since the job is stuck in a Pending or Running state (set the time to a minimum of 1 minute, maximum of 10 days, 23 hours and 59 minutes);

      Example: Orchestrator will attempt to kill jobs that have been stuck for at least 10 minutes in Pending or Running.

    • Select Stop from the drop-down and enable the If the job does not stop, kill it option - attempts to gracefully end the execution after the defined time interval has passed since the job is stuck in a Pending or Running state and then attempts to forcefully end it after the defined time interval has passed since the job is stuck in a Stopping state (set the time to a minimum of 1 minute, maximum of 10 days, 23 hours and 59 minutes).

      Example: Orchestrator will attempt to stop jobs that have been stuck in Pending or Running for at least 10 minutes. If the termination does not happen, Orchestrator will attempt killing those jobs that have been Stopping for at least 20 minutes.

  13. Turn on the Schedule automatic trigger disabling toggle, and enter the date and time when the trigger is to be disabled. The selected time zone influences when the time trigger gets disabled.
  14. Turn on the Generate an alert if the job is stuck (in pending or resumed status) toggle, and set the acceptable duration for the job to remain in the pending or resumed status. The minimum configurable duration is one minute. The maximum configurable duration is eleven days. If the job exceeds the configured duration, an "Error" severity alert pop-up informs you about it with the following text: "N jobs for #process {process_number} have been pending or resumed for more than X hours and Y minutes.", where:
    • N - is the number of jobs that triggered the alert;
    • {process_number} - the process identifier;
    • X - the configured number of hours the job exceeded while having the pending or resumed status; Days are converted to hours.
    • Y - the configured number of minutes the job exceeded while having the pending or resumed status.
  15. Turn on the Generate an alert if the job started and has not completed toggle, and set the acceptable duration for the job to complete. The configurable duration is minimum one minute and maximum eleven days. If the job exceeds the configured duration, an "Error" severity alert pop-up informs you about it with the following text: "Job for #process {process_number} has been pending been running for more than X hours and Y minutes.", where:
    • {process_number} - the process identifier;
    • X - the configured number of hours the job exceeded while trying to complete; Days are converted to hours.
    • Y - the configured number of minutes the job exceeded while trying to complete.
  16. Turn on the Set execution-based trigger disabling toggle if you would like to control when the trigger is disabled once a job fails. This toggle reveals two options:
    OptionDescription
    Disable when consecutive job execution fail countThe trigger is disabled after the number of failed executions you choose for this setting.

    You can choose a value between 0 and 100. The default is 0, meaning that the trigger is never disabled.

    Stopped jobs are not counted towards this value.

    Grace period on disabling the trigger (days)The number of days to wait before the trigger is disabled after the first failure of a job.

    You can choose a value between 0 and 30. The default is 0, meaning that the trigger is disabled as soon as the number of job executions set in the field above is reached for the current day.

  17. To keep the same account-machine context configured for starting the job, check the Keep Account/Machine allocation on job resumption box. This optimizes your license and resource usage.

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.