Skip to content
Pyck docs

You are reading the Dev docs (main @ e991a08). They can differ from the released product.Dev docs, not the release

Switch to LatestLatest

unregisterWorker

Marks the calling worker’s live signal subscriptions as stopped, e.g. on a clean shutdown. A stopped subscription is a hint, not a deletion: the router ignores it while another worker holds running subscriptions on the same workflow, and otherwise keeps routing to it until its TTL lapses. A later registerWorkflowWithSignals from the worker clears the mark. Never touches workflow rows. Idempotent.

Served by: workflow

Name Type
workerID String!

UnregisterWorkerPayload!

Marks the live signal subscriptions of a worker as stopped, for example on a clean shutdown, and returns how many it stopped.

mutation UnregisterWorker($workerID: String!) {
unregisterWorker(workerID: $workerID) {
stopped
}
}

Variables

{
"workerID": "<worker ID>"
}