Skip to content

workflows: add experimental subscribe support - #7087

Open
mkuritsu wants to merge 2 commits into
cloudflare:mainfrom
mkuritsu:rcorreia/experimental-workflows-subscribe
Open

workflows: add experimental subscribe support#7087
mkuritsu wants to merge 2 commits into
cloudflare:mainfrom
mkuritsu:rcorreia/experimental-workflows-subscribe

Conversation

@mkuritsu

@mkuritsu mkuritsu commented Aug 21, 2026

Copy link
Copy Markdown

This PR adds the experimental workflows_instance_subscribe compatibility flag to gate the new workflows event subscription feature. It also adds the required api fetcher implementation.

This intentionally does not update public types since the feature is behind a experimental compat flag, public types will be deferred to a later PR enabling the feature publicly

@mkuritsu
mkuritsu requested review from a team as code owners August 21, 2026 18:24
@mkuritsu
mkuritsu requested a review from NuroDev August 21, 2026 18:25
@github-actions

github-actions Bot commented Aug 21, 2026

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@mkuritsu
mkuritsu force-pushed the rcorreia/experimental-workflows-subscribe branch from e30472a to d0546dc Compare August 21, 2026 18:37
@mkuritsu

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

github-actions Bot added a commit that referenced this pull request Aug 24, 2026
@Caio-Nogueira
Caio-Nogueira requested a review from a team August 24, 2026 10:20
@mkuritsu
mkuritsu force-pushed the rcorreia/experimental-workflows-subscribe branch from d0546dc to c9f81d2 Compare August 24, 2026 13:36
}

const subscription = await this.#fetcher.subscribe(this.id, options);
Object.defineProperty(subscription, Symbol.asyncIterator, {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather not ship it this way, we should ship something JSRPC native instead.
Unclear if a JSRPC native impl will have the same interface.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants