Impact Analysis
Before you push a breaking change to a worker, you should know what it’ll affect. wd impact tells you. It’s also useful during incidents when you need to quickly figure out what depends on the thing that’s failing.
$ wd impact workers/api Impact analysis for workers/api
Upstream (depends on): payments-db → shared with workers/batch-workflow, workers/event-router token-kv → exclusive payment-outbox → shared with workers/batch-workflow, workers/event-router
If workers/api is unavailable: workers/batch-workflow is unaffected (no direct dependency) workers/event-router is unaffected (no direct dependency)Three sections:
- Upstream — resources and workers this one depends on, and whether they’re shared with other workers or exclusive
- Downstream — other workers that depend on this one (via service bindings or queue consumption)
- Consequences — what breaks if this worker goes down
In this example, workers/api shares payments-db with two other workers, but token-kv is exclusive to it. Neither batch-workflow nor event-router calls api directly, so they’re unaffected if api goes down.