Creating and Run Jobs
Before You Begin
You'll need to get an authentication token to run refreshes. Tokens are used for the Trigger Job to Run API or using refresh with the CLI. Review the steps in Connecting to the API.
You can only refresh if you've deployed your pipeline.
Step 1: Create a Job
- Go to Jobs in the Build sidebar.
- Select the + sign to create a new Job.
- Select Edit to add selector queries. Selector queries allow you to select a subset of Nodes to be refreshed.
- Take note of your Job ID. In this example it's
jobID: 3. You'll need the Job ID to run it as part of the refresh.
You can add a subgraph to a Job by using a selector query or by drag and drop.
Step 2: Commit Your Job
Jobs need to be committed into Git and deployed to an environment before they can be used. You can read more about making commits in our Git Integration article.
Step 3: Configure Your Environment
Go to Build Settings > Environments and check that the environment you want to refresh is configured. It should have:
- Your data platform credentials
- Storage Locations and Storage Mappings
- Parameters (optional)
Step 4: Deploy Your Pipeline
Jobs can only be run if they have been deployed first. Review our Deployment Overview to learn different ways to deploy your pipeline.
Step 5: Run Your Jobs
Use the Coalesce Scheduler (fastest), API or CLI to run a Job.
Scheduler
The built-in Coalesce Scheduler provides the easiest and fastest way to automate your environment refresh.