workers-sdk icon indicating copy to clipboard operation
workers-sdk copied to clipboard

[Wrangler] Add Workflows sendEvent wrangler command

Open pombosilva opened this issue 1 month ago • 4 comments

Fixes WOR-1057.

This adds a new command to wrangler wrangler workflows instances send-event <name> <id> with options --type and --payload to allow users to just call this command to send an event to a deployed running workflow instance rather than having to implement it themselves or having to use the API.


  • Tests
    • [x] Tests included/updated
    • [ ] Tests not necessary because:
  • Public documentation
    • [ ] Cloudflare docs PR(s):
    • [x] Documentation not necessary because: it will be automatic
  • Wrangler V3 Backport
    • [ ] Wrangler PR:
    • [x] Not necessary because: Workflows were not GA in v3

A picture of a cute animal (not mandatory, but encouraged) Okay, if you really want... here is the cutest dog (@sidharthachatterjee) Now try not to fall in love image

pombosilva avatar Dec 10 '25 15:12 pombosilva

🦋 Changeset detected

Latest commit: d18edef6d1a5d1d86627a0677c7dc052b1eeea0e

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

changeset-bot[bot] avatar Dec 10 '25 15:12 changeset-bot[bot]

Failed to automatically backport this PR's changes to Wrangler v3. Please manually create a PR targeting the v3-maintenance branch with your changes. Thank you for helping us keep Wrangler v3 supported!

Depending on your changes, running git rebase --onto v3-maintenance main osilva/add-send-event-wrangler-command might be a good starting point.

Notes:

  • your PR branch should be named v3-backport-11590
  • add the skip-v3-pr label to the current PR to stop this workflow from failing

github-actions[bot] avatar Dec 10 '25 15:12 github-actions[bot]

LGTM from the workflows team

Caio-Nogueira avatar Dec 10 '25 17:12 Caio-Nogueira

Could you please get an approval from within your team first ? (That's the usual process from contributions originating from outside the ANT team). Thanks

I have an approval from my team. Caio left a comment above

pombosilva avatar Dec 11 '25 10:12 pombosilva