Skip to main content
A job runs your project’s models on a schedule using an external orchestrator: Databricks Jobs or Airflow. Use a job when you want to schedule models on their own, without a pipeline.
Jobs are available in the Enterprise Edition. See Editions.

Jobs and pipeline schedules

Jobs and pipeline schedules both automate runs, but they run on different fabrics:

Create a job

To create a job:
  1. In the left sidebar of the project, click + Add Entity > Job.
  2. In the Create Job dialog, fill in the following fields.
  3. Click Create New. The job opens on its own canvas.

Choose a scheduler

  • Databricks: Available only for Databricks SQL projects.
  • Airflow: Available for SQL projects on any provider. Airflow appears only when it’s enabled for your Prophecy deployment.
If your project doesn’t use Databricks, Prophecy selects Airflow for you.

Job alerts

For jobs that use the Databricks scheduler, you can send email alerts about the whole job run:
  1. In Alerts Email, enter one or more email addresses, separated by commas.
  2. Under When should we send alerts, turn on one or more of the following:
    • on start: When the job starts.
    • on success: When the job finishes successfully.
    • on failure: When the job fails.

Build the job

Each gem on the job canvas is a task in the job. For Databricks jobs, the gem bar above the canvas has the following gems: For details on configuring the Script, Notebook, IfElse, and RunJob gems, see Databricks jobs.

Add a model to a job

The Model gem runs either a single model or every model in a project. To add one:
  1. If the gem bar doesn’t show the Model gem, turn on Show Models for the project.
  2. Drag a Model gem to the job canvas.
  3. Click the gem to open its properties.
  4. Choose what to run and fill in the fields. See Model gem settings.
  5. Click Save.

Model gem settings

The Model gem has two modes:
  • Run Entire Project: Runs all models, tests, and seeds in the project.
  • Run a SQL model: Runs one model from the project.
Both modes have the following fields: The following options control which dbt commands run:

Deploy a job

A job runs on its schedule only after it’s deployed to its fabric. Jobs deploy when you publish the project and select the job’s Databricks or Airflow fabric. You can deploy jobs and pipelines in the same publish. During publication, the schedule impact step lists the project’s jobs:
  • If Selective job deployment is on in the project settings, pick the jobs to deploy.
  • If it’s off, every job deploys.
If a job deployment fails, the publication logs open on the Jobs tab.

Pause a job

To pause a job’s schedule, turn off the Job scheduling toggle to the right of the gem bar on the job canvas. The change takes effect the next time you publish the project. When you publish, Prophecy pauses the job’s schedule on its fabric. If the job was never deployed to that fabric, Prophecy doesn’t deploy it.