Create a Job

When you create a job, you configure at least one flow, and select which steps to execute in each flow. You can use out-of-the-box system job steps that don't require any coding. If there isn't a system job step available to do what you want, a developer must create a custom job step. You can also schedule when the job executes, specify resources to lock during job execution, and configure email notifications and error handling.

  1. Select Administration > Operations > Jobs.
  2. Click New Job.
  3. Enter an ID and description.
    Ignore the Priority selection. The Priority feature isn’t supported.
  4. Click Create.
  5. (Optional) Schedule the job to run on a specific date or on a recurring basis.
    Scheduled jobs are not supported on sandboxes instances.
    1. Click Schedule and History.
    2. Click Enabled.
    3. Under Active, select Once or recurring interval, and specify a date or range of dates and times.
    4. For recurring jobs, under Run Time, enter the number of times to run the job and at what interval.
    5. If necessary, select one or more days under Run only on these days.
    A job doesn't start if a previous execution of the same job is still running, so it's important to understand how long a job takes to execute before scheduling it. It's also important to schedule jobs so that multiple jobs don't try to acquire a lock on the same object at the same time. Typically, you can run as many as 15 jobs simultaneously.
  6. (Optional) To prevent modifying a resource while the job is operating on it, click Resources, click Select, and select the resource type and value.
  7. Add at least one flow:
    1. Click Job Steps.
    2. To add sets of sibling flows, click Icon for adding a new sibling flow.
    3. For each set of sibling flows, specify either parallel or sequential processing. Icon for selecting parallel or sequential processing for a set of sibling flows.
    4. To add another sequential flow, click Plus symbol icon for adding a new sequential flow. at the bottom of a flow.
    5. To execute the flow on all sites, leave the scope as is, or click Organization to select specific sites.
      Some steps cannot execute with an Organization scope. When you try to assign the step to the flow, the job step shows an error.
  8. Add steps to the flows:
    1. On the Job Steps tab, select the flow where you want to add a step.
    2. Click Configure a step, and select a step.
    3. Configure the step parameters.
      Required parameters are marked with a red asterisk. For some parameters, you can hover your mouse over the parameter to get information about what to enter.
    4. Select whether this job step always executes when a job is restarted, even if the step was already completed.
    5. Select an error handling option for the step.
    6. Click Assign.
  9. To configure error handling for the job:
    1. Select Failure Handling.
    2. Select a failure rule. The failure rule is invoked after a job finishes with an ERROR status.
      • Continue As Scheduled: Job executes at next scheduled time.
      • Stop On Error: Job schedule disabled to prevent future executions.
      • Retry: Job restarted on error. For this option, you must configure the number of retries to be attempted and the interval between retries.
  10. To send email notifications about the job status:
    1. Click Notification.
    2. Select Enabled.
    3. Select the events that trigger a notification.
    4. Enter email addresses for the email sender and recipients.
    5. (Optional) Select Long Runtime Detection snd specify the run time.