Dagster
Connect Dagster to Weld so an orchestration tells Dagster when your data is ready. Once the jobs a webhook depends on have finished, Weld either launches a Dagster job and waits for its run, or reports an asset as materialized so your own Dagster sensors and automation conditions take it from there. Dagster no longer has to poll Weld to find out when a sync is done.
Before you start
- Dagster+ or a self-hosted Dagster webserver.
- For Dagster+: a user token whose user can launch runs and report asset events in the deployment.
- For self-hosted Dagster: a webserver Weld can reach over HTTPS from the internet.
- Triggering Dagster from Weld is part of orchestration, which is included in the Premium plan and above.
Step 1: Connect Dagster
- Open the orchestration whose jobs Dagster should follow, and click the Webhooks tab.
- Click Set up Dagster connection.
- Enter a Name, choose how you run Dagster under Select Authentication Method, fill in the fields and click Connect.
A workspace has one Dagster connection, used by the webhooks of every orchestration.
Dagster+
- Deployment URL: your Dagster+ URL including the deployment name, for example
https://your-org.dagster.plus/prod. - User token: a Dagster+ user token, which you create from your profile under Tokens. Its user needs permission to launch runs and report asset events in the deployment.
Self-hosted
- Webserver URL: the URL you open the Dagster UI on, for example
https://dagster.example.com. If the webserver only accepts known IPs, allow3.64.84.139,3.65.119.169and35.156.133.78. - Auth header name and Auth header value: only when a proxy in front of Dagster asks for a credential, for example
AuthorizationwithBasic …orBearer <token>. Weld sends the header on every request. Fill in both or leave both empty.
When you click Connect, Weld lists your Dagster code locations, so a wrong URL or token fails here rather than on the first run.
Step 2: Call Dagster after your syncs
- On the Webhooks tab, click Create webhook.
- Fill in the webhook and click Save:
- Name, for example
notify_dagster_after_syncs. - External System: Dagster.
- Select job to run or asset to report: a job, listed as Run job with its name and code location, or an asset, listed as Report with its asset key and as materialized.
- Select job(s) to run after: the jobs in this orchestration that must finish first. These can be data source syncs, models, reverse ETL syncs or another webhook.
What happens on each run depends on what you picked:
| You picked | What Weld does | When the webhook run succeeds |
|---|---|---|
| A job | Launches the job in Dagster | When the Dagster run succeeds. A failed or cancelled run fails the webhook, and View in Dagster opens the run. |
| An asset | Reports the asset as materialized | As soon as Dagster accepts the event. Your sensors or automation conditions in Dagster start the downstream work. |
Troubleshooting
"This is not a Dagster+ URL". You chose Dagster+ for a Dagster you run yourself. Choose Self-hosted instead.
"This is a Dagster+ URL". You chose Self-hosted for a Dagster+ deployment. Choose Dagster+ and add a user token.
"Could not reach Dagster". Check the URL, and for self-hosted Dagster that the webserver is reachable over HTTPS and allows Weld's IP addresses.
"Enter both the auth header name and its value". Fill in both auth header fields, or leave both empty.
A launched job fails right away. Weld launches jobs without run config, so a job that requires config fails with Dagster's validation message. Give the job default config in Dagster, or report an asset instead.