Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Route plan and run failures to Slack or Teams

Once a data product is published, wire Vulcan's notification_targets so a failed plan or run pages Slack or Teams automatically, instead of waiting for someone to notice it in the logs.

Use notifications once a published product runs unattended. notification_targets in config.yaml sends Slack or Teams alerts when a plan or run fails, in every environment the project runs in, not just prod. The failure reaches a channel instead of remaining in a log.

By the end of this recipe, config.yaml has a notification_targets block routing plan and run failures to Slack or Teams, and you've confirmed delivery end-to-end against a real failure.

Before you begin

  • The product is already scaffolded and connected (see Init and configuration if not).

  • A Slack or Teams channel you have permission to add an integration to (an Incoming Webhook for Slack, a Workflow for Teams).

  • Access to set environment variables wherever Vulcan runs: shell, CI pipeline, or scheduler. A webhook URL is a secret and needs a home outside config.yaml.

  • curl, to test the webhook independently of Vulcan.

  • A reasonably recent Vulcan build. teams_webhook support is confirmed present in 0.228.1.26, confirmed absent in 0.228.1.23 and earlier. On an older pin, type: teams_webhook fails as an unrecognized target, and the data-quality events are still named check_start/check_end/check_failure instead of today's dq_start/dq_end/dq_failure. Check your pinned image tag before continuing.

Steps

1. Pick Slack or Teams

Vulcan documents exactly four notification target types: teams_webhook, slack_webhook, slack_api, and smtp (email). This recipe focuses on Slack and Teams, since that's the fastest path to a channel alert:

Target
Can message
Credential needed
Best for

slack_webhook

A single Slack channel only

Incoming Webhook URL

Team-wide alert channel, simplest setup

slack_api

A channel or a specific Slack user

Slack API token + channel/member ID

Paging an individual owner directly

teams_webhook

A single Teams channel

A Teams Workflows webhook URL

Teams-only orgs

smtp

One or more email addresses

SMTP host, user, password, and sender address

Recipients without Slack or Teams access, or a distribution list

Use a webhook for channel alerts. Use slack_api only to alert a specific person. Use smtp when the audience is an email distribution list rather than a chat channel:

2. Get a webhook URL

Slack: create an Incoming Webhook for the target channel. Copy its unique URL.

Set up a Teams Workflows webhook

The Vulcan reference's own teams_webhook example still shows a webhook.office.com-style URL (the old "Office 365 Connector" incoming webhook), and that format still works wherever Microsoft hasn't disabled it for your tenant. In practice, many organizations have already been migrated off Office 365 Connectors onto Workflows, so check with your Teams admin before assuming either format is available:

  1. In the target channel, open ⋯ → Workflows.

  2. Search for and select the "Send webhook alerts to a channel" template.

  3. Sign in if prompted, confirm the target channel, and add the workflow.

  4. Copy the generated URL (a *.powerplatform.com/*.logic.azure.com-style URL, not webhook.office.com).

Either URL format works as the url value for a teams_webhook target; Vulcan just POSTs to it.

Do not hardcode webhook URLs in config.yaml. Export them as environment variables and use {{ env_var(...) }}:

Three other ways to get the value into the process environment, depending on where Vulcan runs:

  • Project .env (dev only, gitignored): Vulcan auto-loads a .env file from the project root with no flag needed. Use --dotenv <path> only to point at a .env file outside the project.

  • Personal machine-wide config: set an env_vars key in ~/.vulcan/config.yaml. Vulcan loads it before rendering any project config, so every project on that machine picks up the value without per-project setup.

  • CI/CD: set it as a pipeline secret so it exists only for the job's duration and is never written to disk in the repo.

Before wiring Vulcan at all, confirm the webhook itself works with a direct request. This isolates "is Teams configured right" from "is Vulcan configured right," which is much harder to debug together:

Expect HTTP 202 and a card in the channel within seconds. If you get a 202 but no card, the workflow's "Post card in a chat or channel" action is likely posting the raw request body as plain text instead of rendering the Adaptive Card. Edit that action to consume the Adaptive Card from the trigger.

3. Wire notification_targets in config.yaml

Add notification_targets. This configuration alerts both Slack and Teams on plan and run failures:

To page a specific person instead of a channel, use slack_api with their Slack member ID as channel:

Field names are snake_case: notification_targets and notify_on. Vulcan recognizes snake_case keys only, both here and across config/asset YAML generally; there's no camelCase-to-snake_case conversion. Use notification_targets/notify_on, not notificationTargets/notifyOn.

The full notify_on catalog

Each target's notify_on list is any combination of these events:

notify_on value

Fires when

apply_start

A plan begins applying to an environment

apply_end

A plan finishes applying to an environment

apply_failure

A plan fails to apply

run_start

A vulcan run begins

run_end

A vulcan run finishes

run_failure

A vulcan run fails

dq_start

Data quality checks begin

dq_end

Data quality checks finish

For a routine failure channel, apply_failure and run_failure are usually enough. *_start/*_end are useful for a busier "activity feed" style channel but fire on every plan and run, not just problems.

Older Vulcan builds used check_start/check_end/check_failure instead of today's dq_start/dq_end/dq_failure. If a project's config or a notification handler still references check_*, migrate it to the dq_* names.

Global targets vs. per-user targets

A top-level notification_targets key applies project-wide. A target under a user in users alerts that user too. Use it to page an owner without routing every failure to them.

A global target fires for every matching event regardless of who owns the failing model. A user-specific target fires in addition to the global ones, so use it when one person needs a direct page on top of the channel alert.

Keep local dev from spamming the channel

Set a top-level username key (in the project config.yaml or in ~/.vulcan/config.yaml) to route every notification to only that user's personal targets while you're iterating:

Putting it in ~/.vulcan/config.yaml is the better spot for this, since it only silences notifications on your machine and doesn't affect anyone else's config.

4. Publish, then confirm a real failure arrives

Verify notifications against a published product. First publish cleanly. Then introduce a realistic failure and confirm delivery.

The most reproducible failure is a model that cannot build. Point a model at a column that doesn't exist, for example, an orders-analytics-style model tracking order counts per item:

The upstream model has no order_id column, so the apply fails instead of the model building.

Run a plan against prod:

vulcan plan reports the failure. Within seconds, the webhook channel receives a message from the unedited default teams_webhook template.

The header line is a status icon plus the raw event name: ❌ apply_failure for a failure, ✅ apply_end for a clean success, ⚠️ for a warning, ℹ️ for an info-level start/end event. The Python exception or error text follows below the summary; any single text block over 3000 characters gets truncated with .... This is accurate but harder to scan. After confirming delivery, restore the correct column and re-run the plan.

5. Run as a managed DataOS resource (optional)

If this Vulcan project runs as a managed DataOS vulcan resource rather than from a shell, don't hand-manage TEAMS_WEBHOOK_URL at all: put it in a DataOS Secret and inject it via a projection, the same pattern used for depot and Nilus connector credentials.

Once that lands in the container's environment, {{ env_var('TEAMS_WEBHOOK_URL') }} in config.yaml resolves it exactly the way a shell export would. The projection is just how the value gets into the process before Vulcan starts.

Troubleshooting

Symptom
Likely cause
Fix

ConfigError: Missing Teams webhook URL for notification

Neither url on the target nor TEAMS_WEBHOOK_URL in the environment is set

Set url explicitly, or export TEAMS_WEBHOOK_URL in the environment Vulcan runs in

curl test returns HTTP 400

Malformed JSON, or an escaped \? in the copied webhook URL

Re-copy the URL as one unescaped string and retest

curl test returns HTTP 401/403

The Teams workflow URL expired or was revoked

Regenerate the workflow and update TEAMS_WEBHOOK_URL everywhere it's set

curl succeeds (202) but nothing shows in the channel

The workflow is posting the raw body as text instead of rendering the Adaptive Card

Edit the workflow's post action to consume the Adaptive Card from the trigger

Notification never fires on a real failure

The event isn't in notify_on, or type: teams_webhook isn't recognized by this Vulcan version

Add the missing event; confirm the Vulcan version supports teams_webhook (see Before you begin)

References

Last updated

Was this helpful?