Skip to content

Conversation

@pombosilva
Copy link
Contributor

Fixes WOR-1054.

Adds step context with attempt count for step.do() callbacks. This allows to access the current step attempt number within their step (this is 1-indexed).

This change is backward compatible with JS workflows, however it would break Python workflows - here is the PR to prevent that.

Types will be added in a follow-up PR to workerd.


  • Tests
    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows:
    • Additional testing not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: We will add after all changes get released (internal + workerd)

A picture of a cute animal (not mandatory, but encouraged)

@pombosilva pombosilva requested review from a team as code owners January 19, 2026 15:01
@changeset-bot
Copy link

changeset-bot bot commented Jan 19, 2026

🦋 Changeset detected

Latest commit: dde1dd2

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

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 19, 2026

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@11970

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@11970

miniflare

npm i https://pkg.pr.new/miniflare@11970

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@11970

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@11970

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@11970

@cloudflare/vitest-pool-workers

npm i https://pkg.pr.new/@cloudflare/vitest-pool-workers@11970

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@11970

@cloudflare/workers-utils

npm i https://pkg.pr.new/@cloudflare/workers-utils@11970

wrangler

npm i https://pkg.pr.new/wrangler@11970

commit: dde1dd2

@pombosilva pombosilva force-pushed the osilva/add-step-context branch from 0e2dcaa to d4c5984 Compare January 19, 2026 15:08
@pombosilva pombosilva force-pushed the osilva/add-step-context branch from d4c5984 to dde1dd2 Compare January 19, 2026 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Untriaged

Development

Successfully merging this pull request may close these issues.

1 participant