This procedure starts from the presumption that you previously created a process.
- Navigate to Automations > Jobs in the folder the process resides in.
- Click Start. The Start Job window is displayed.
- From the Process Name drop-down, select a process that has been previously deployed to the current folder.
- From the Jobs Priority drop-down, select the priority of the job to be executed if you want it different from the priority set at the process level. This field is automatically populated with the priority inherited from the package.
- From the Runtime type drop-down, select the runtime type used to execute the job. The number of available and connected runtimes is displayed below the drop-down.
You cannot start a job in unattended/nonproduction/testing/development mode unless you have runtimes of that type associated with the machine object used for execution. Assign runtimes to your machine objects on the Machines page (tenant context). See Managing Machines for details.
- _ Available - The number of available runtimes, calculated as the total number of runtimes minus the number of running jobs.
- _ Connected - The total number of runtimes, calculated as the sum of runtimes on all machines connected to Orchestrator that is associated with the active folder.
The job is executed in unattended mode consuming an Unattended runtime.
The job is executed in unattended mode consuming a NonProduction runtime.
The job is executed in unattended mode consuming a Testing runtime.
The job is executed in unattended mode using a Development runtime. This allows developers to run jobs from Orchestrator in their personal workspace, for testing and debugging purposes, without consuming an Unattended, NonProduction or Testing license. See details about debugging using personal workspaces.
Example: Say you have 2 nonproduction runtimes and 1 Unattended runtime on machine template A, and 3 NonProduction runtimes, and 2 Unattended runtimes on machine template B. Both are associated with one folder. On each template, you connect one host machine. The resulting runtime state is the following:
3 Available, 3 Connected
5 Available, 5 Connected
A running job occupying a runtime subtracts 1 from the number of available runtimes for that type.
- In the Execution Target tab select the execution strategy:
1. 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 this option you can execute a process up to 10000 times in one job.
Specifying an account means the process is executed under that specific user or robot account.
Specifying a machine object means the process is executed on one of the host machines attached to the selected machine template. Select a specific host machine from the pool of connected host machines on the Connected Machines field.
Make sure that runtimes matching the job type are allocated to the associated machine template. Only connected host machines associated with the active folder are displayed.
4. Keep Account/Machine allocation on job resumption
This field allows you to configure whether the different fragments of a long-running job are executed on the same account-machine pair.
Say you need an SAP license to execute a job. Instead of installing an SAP license on every available machine (increased costs), you can install it on a single machine and use that machine to start and resume the job. The same strategy may apply to user licenses. You can allocate only one user license and use it to execute the job.
5. Schedule ending of job execution
The process execution may sometimes be faulty, causing the job to remain in the pending state. Turning on the toggle allows you to (click to expand):
Select **Stop** from the drop-down menuAttempts to gracefully end the execution after the defined time interval has passed since the job is stuck in a pending state (set the time to a minimum of 1 minute, maximum of 10 days, 23 hours and 59 minutes).
Select **Kill** from the drop-down menuAttempts to forcefully end the execution after the defined time interval has passed since the job is stuck in a pending state (set the time to a minimum of 1 minute, maximum of 10 days, 23 hours and 59 minutes).
Select **Stop** from the drop-down menu and turn on the **Schedule automatic "Kill"", if the job does not stop** optionAttempts to gracefully end the execution after the defined time interval has passed since the job is stuck in a pending 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).
Orchestrator prevents starting jobs on invalid configurations. Trying to start a job in an invalid setup results in a descriptive error message providing you with details about how to fix your configuration.
Starting a job using dynamic allocation, i.e. no machine or account specified, with an incompatible folder setup results in an error. Make sure to correct the setup, otherwise, jobs stay pending indefinitely. For example, trying to run a .NET Framework 4.6.1 background job when there are only cross-platform templates in the folder does not work, as jobs stay pending until the configuration is fixed.
Learn how to optimize unattended infrastructure using machine templates.
- In the Arguments tab, provide input arguments for the selected process. This tab is automatically populated with all the input arguments accepted by the selected process, and the corresponding values inherited from the package.
- Click Start. The Start Job window closes and, if there are available runtimes on the currently active folder, the job starts on a Robot according to the settings you made. The State of the job is displayed in real-time on the Jobs page.
Click the corresponding More Actions button, and then Stop. The automation project is executed until it finds a Should Stop activity. During this time, the job is in the Stopping state. If the activity is encountered, the execution is stopped, and the job's final status is Successful. If a Should Stop activity is not found, the job execution does not stop until it reaches the end of the project. The final status, in this case, is Successful as well.
- A job started from Orchestrator can be stopped only from Orchestrator.
- A job started from the Assistant can be stopped both in Orchestrator, from the Jobs page, and using the UiPath Assistant.
- Once a job has been stopped, the job ending schedules are lost and you need to reconfigure Schedule ending of job execution options at job restart.
Click the corresponding More Actions button, and then Resume.
Click the corresponding More Actions button, and then Kill. The automation project is forcefully stopped, the job is marked as Stopped, and "Job canceled" is displayed in the Job Details window.
- A job started from Orchestrator can be killed both in Orchestrator, from the Jobs page, and using the UiPath Assistant.
- A job started from the Assistant can be killed both in Orchestrator, from the Jobs page, and using the UiPath Assistant.
- Once a job has been killed, the job ending schedules are lost and you need to reconfigure Schedule ending of job execution options at job restart.
This feature enables you to quickly run a job from the jobs list, without going through the configuring job flow. You can restart any job with a final state – Stopped, Faulted or Successful.
- You cannot restart jobs triggered by agents such as the Assistant or through Studio remote debugging sessions.
- When you restart a job that had Schedule ending of job execution options active, you need to reconfigure these options.
This procedure starts from the presumption that you previously started a job that already reached a final status.
- Click the corresponding More Actions button, and then Restart. The Start Job window is displayed, with the job's initial settings.
- Make the desired changes.
- Click Start. The Start Jobs window closes and the execution starts. The status of each job is displayed, in real-time, on the Jobs page.
To view the logs for a specific job, click the corresponding More Actions button, and then View Logs. The Logs page is displayed and contains data regarding the indicated job.
Logs generated for jobs started through remote debugging sessions are not available on the Job logs page. Find them on the global Logs page.
To view details about a specific job, follow these steps:
- Click the corresponding View Details button. The Job Details window is displayed. Here you can find various information such as the name of the underlying process, the executing robot and machine, the reason behind jobs failing, etc.
The Info field does not display licensing considerations for jobs failing. Use the monitoring functionality for details on licensing.
To download the recording for a faulted job, click More Options > Download Recording. Execution media is downloaded according to your settings.
Updated 3 months ago