Configure a job

In this topic, you learn how to configure a job and define who receives error notifications if the job fails.

Prerequisites

  • There are no prerequisites.

Procedure

  1. In the Cockpit, select the Job Manage tool.

    Result: A table of existing background jobs that run server scripts is shown.

  2. Select Create.

    Result: The Create Job dialog opens.

  3. In Name, enter a meaningful name for the job.

  4. In the Schedule section, in Start and End, define a start and end date as an execution schedule for the background job.

  5. In Interval, define how much time passes between two runs of the background job. You can use the signs + and - or your number keys to enter intervals.

  6. Select Create. Result: You start in the General tab of the background job.

  7. In Package, assign the background job to a development package of artifacts.

  8. In Package, assign the background job to a development package of artifacts.

  9. Optionally, in Run as user, select the user that the job script runs as. Only global administrators can set this field.

    If Run as user is empty, a manual run executes as the user who starts it. A scheduled or event-triggered run executes as the user who created the job. If a run has no user context, a script that calls an AI Agent fails with an error that asks you to set Run as user.

  10. If you want to enable the background job after you have created it, select Active.

  11. In Error Notification, add email addresses that you want to notify if the job fails.

  12. Select Save.

Results

  • You have created a job with a basic execution schedule.