Skip to main content

Create a Scheduled Job Flow

From the “Scheduled Job Flows” tab of the Job Management page in Safe Haven, you can click Create Job Flow to configure a new scheduled job flow. After you create a job flow, it will appear on the Job Management page under the "Scheduled Job Flows" tab. From there, you can view its status, see its next scheduled run time, and perform actions such as editing, running, stopping, or deleting it.

Procedure. To create a scheduled job flow:
  1. In the left navigation bar, click Job Management.

    job-management-left-nav-01.png

    The Job Management page displays, with the "Scheduled Jobs" tab selected by default.

    job-manager-parent-main-01.png
  2. Select the "Scheduled Job Flows" tab, and click Create Job Flow.

    job-manager-job-flows-tab-create-01.png

    The Create Job Flow page displays the "Details" step.

    job-manager-job-flows-config-1--01.png
  3. Enter a unique name for the job flow and a description so that you can remember what the job flow does and then click Next.

    The "Select Jobs" step displays.

    job-manager-job-flows-config-2-01.png
  4. Select a job from the Select Job drop-down list to run in the job flow.

    Note

    • Each job added to the job flow must be unique. Adding multiple instances of the same job can cause the job flow to fail.

    • To avoid job flow failures, ensure that the job flow schedule and individual job schedules do not conflict. For instance, a job flow will fail if it attempts to run a job that is already in progress.

    • BigQuery jobs added to the job flow must be enabled to prevent job flow failures.

  5. To add another job to the job flow, click Add a Job and select a job from the Select Job drop-down list. Jobs will run in the order listed, from top to bottom. You can rearrange the order by dragging and dropping jobs.

    Note

    Currently, if a job fails to run in the job flow, the job flow will stop and not proceed to the next job.

    job-manager-job-flows-config-2a-01.png
  6. When all jobs are added and arranged in the proper order, click Next. The “Schedule” step displays.

  7. From the Repeats Every drop-down list, select an interval at which you want to repeat the job flow.

    job-manager-job-flows-config-3b-01.png

    If you want to specify a custom schedule, you can enter a cron schedule expression to instruct the cron utility to run your job flow at a specified day, time, and recurring interval. For example, the cron format typically includes a string of space-delimited integers and special characters, (e.g., , - * /) in the following order:

    • Minute (0−59)

    • Hour (0−23)

    • Day of the month (1−31)

    • Month of the year (1−12)

    • Day of the week (0−6 with 0 = Sunday)

    For more information, see Google Cloud's "Configuring cron job schedules."

  8. As needed, enter the start run time and time zone options.

  9. Click Next and review your job flow information in the "Review" step.

    job-manager-job-flows-config-4-01.png
  10. Click Create to create the job flow.

    You are returned to the Job Management page and your job flow displays the "Ready" status.

    job-manager-job-flows-ready-01.png