Skip to content

feat(workflows): add consumer() to start a Workflow from its queue in @observerly/orderly - #77

Merged
michealroberts merged 1 commit into
mainfrom
feature/workflows/consumer
Oct 24, 2026
Merged

michealroberts merged 1 commit into
mainfrom
feature/workflows/consumer

Conversation

@michealroberts

Copy link
Copy Markdown
Member

What This Changes

  • Adds consumer(options) to defineWorkflow(), the queue handler for a Workflow's queue.
  • Each envelope starts one instance by its id, and a message delivered again starts nothing more.
  • Anything that is not an envelope, or whose params fail the schema, is rejected.

Notes For Reviewers

  • Every other consumer option works as before, including retry, middleware and events.
  • consumer() throws for a contract with no queue.

Checklist

  • Tests cover the change, and run inside workerd
  • A changeset is included, or the change is not one a consumer would notice
  • No Node built-ins were introduced

… @observerly/orderly

feat(workflows): add consumer() to start a Workflow from its queue in @observerly/orderly
@michealroberts michealroberts self-assigned this Oct 24, 2026
@michealroberts michealroberts added the enhancement New feature or request label Oct 24, 2026
@michealroberts
michealroberts merged commit b3cdaa7 into main Oct 24, 2026
6 checks passed
@michealroberts michealroberts mentioned this pull request Oct 24, 2026
3 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant