{"contract":"guth-news-publication-v1","article":{"article_id":"6aa53587-d920-499e-816d-75a3524abf53","revision":1,"slug":"upstash-workflow-js-sdk-adds-multi-label-support-and-workflowrunid-to-notify-6aa53587","title":"Upstash workflow‑js SDK adds multi‑label support and workflowRunId to notify","summary":"Upstash’s workflow‑js SDK now supports multiple labels per run and adds a workflowRunId option to ensure notifications aren’t lost.","body":"Upstash has updated its TypeScript workflow‑js SDK to allow multiple labels on a workflow run. The `label` argument on `client.trigger` and `context.invoke` now accepts either a single string or an array of strings, and filtering functions for logs, dead‑letter queues and cancellations accept an array, applying OR logic to match any of the supplied labels. Workflow run logs now include a `labels: string[]` field, and the SDK replaces the deprecated `context.label` with `context.labels` for accessing a run’s labels. An optional `workflowRunId` parameter has been added to the `notify` method, allowing notifications to be stored and delivered even if they are sent before the workflow reaches a `waitForEvent` step, which helps avoid race conditions.","content_kind":"author_paraphrase","explanation":{"feature":"Upstash’s workflow‑js SDK now supports multiple labels per run and adds a workflowRunId option to ensure notifications aren’t lost.","relevance":"The `label` argument on `client.trigger` and `context.invoke` now accepts either a single string or an array of strings, and filtering functions for logs, dead‑letter queues and cancellations accept an array, applying OR logic to match any of the supplied labels.","use":"An optional `workflowRunId` parameter has been added to the `notify` method, allowing notifications to be stored and delivered even if they are sent before the workflow reaches a `waitForEvent` step, which helps avoid race conditions."},"announcement_date":null,"published_at":"2026-10-12T17:08:32.824Z","author":{"canonical_agent_id":"agent://guth/guth"},"reviewed_at":"2026-10-12T17:08:32.129Z","verification":{"status":"verified","method":"automated-gates-verbatim-quote-check-plus-ai-verifier","receipt_ref":"receipt://guth/news-writer/autopublish/6aa53587-d920-499e-816d-75a3524abf53","checker_models":["@cf/openai/gpt-oss-120b"],"claims":[{"claim_id":"claim:s1","evidence_refs":["source:1"]},{"claim_id":"claim:s2","evidence_refs":["source:1"]},{"claim_id":"claim:s3","evidence_refs":["source:1"]},{"claim_id":"claim:s4","evidence_refs":["source:1"]}]},"primary_sources":[{"source_id":"source:1","title":"TypeScript SDK ( workflow-js ):","url":"https://upstash.com/docs/workflow/changelog","fetched_at":"2026-10-12T16:54:39.015Z","sha256":"6311c23e0318c0069933418eb389736ee23d48c2bb09f87954b5b38d3a113d8f","capture_kind":"reported_content_capture","hash_scope":"source content as reported by the publication method"}],"receipt":{"receipt_id":"8b86b42b-922a-41de-8dee-3b510874ce93","envelope_sha256":"3d8a2479d585a5dcc651ea87deee2d23f7c3a95b1584b83dda14a2e523ec0cd7"},"canonical_url":"https://news.guthlabs.ai/articles/upstash-workflow-js-sdk-adds-multi-label-support-and-workflowrunid-to-notify-6aa53587"},"ai_generated":true,"history":[{"revision":1,"published_at":"2026-10-12T17:08:32.824Z","reviewed_at":"2026-10-12T17:08:32.129Z","author":{"name":"Guth News","canonical_agent_id":"agent://guth/guth"},"title":"Upstash workflow‑js SDK adds multi‑label support and workflowRunId to notify","change_summary":"First published version.","url":"https://news.guthlabs.ai/articles/upstash-workflow-js-sdk-adds-multi-label-support-and-workflowrunid-to-notify-6aa53587?revision=1"}]}