Skip to content

Various workflows bug fixes - #265

Merged
hoodmane merged 6 commits into
cloudflare:mainfrom
hoodmane:hoodmane/workflow-fixes
Sep 18, 2026
Merged

hoodmane merged 6 commits into
cloudflare:mainfrom
hoodmane:hoodmane/workflow-fixes

Conversation

@hoodmane

Copy link
Copy Markdown
Contributor

This commit series fixes a bunch of minor bugs in workflows. I can split them into separate PRs if the reviewers prefer, otherwise we should merge not squash.

… serialization

With the `enhanced_error_serialization` compat flag, on since compat
date 2026-04-21, a PythonError tunneled over RPC keeps `name == "PythonError"`
and its message is the bare traceback, rather than a plain Error whose message
starts with "PythonError: ".

This updates `_from_js_error` to account for it.
… step name

The Workflows engine allows the same step name to be used more than once, but
the Python wrapper tracked in-flight tasks and memoised results by name. Two
same-named steps running concurrently raised KeyError when the second one
finished, and could observe each other's results.
@ryanking13

Copy link
Copy Markdown
Contributor

Could you please split feat(runtime-sdk): Add helpers to import JavaScript modules shipped with the SDK and later to a separate PR? I would like to discuss a little bit on how we should do it (#90). Since import_from_javascript doesn't work for 0.26.0a2.

@hoodmane

Copy link
Copy Markdown
Contributor Author

cc @Caio-Nogueira

@hoodmane
hoodmane force-pushed the hoodmane/workflow-fixes branch from 64c2c72 to e3c2636 Compare September 17, 2026 22:11
@hoodmane

Copy link
Copy Markdown
Contributor Author

@ryanking13 done #266

@ryanking13 ryanking13 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The hyperdrive error doesn't seem related. let me take a look. Otherwise looks good to me.

@hoodmane
hoodmane merged commit 10a2bcc into cloudflare:main Sep 18, 2026
25 of 27 checks passed
@hoodmane
hoodmane deleted the hoodmane/workflow-fixes branch September 18, 2026 04:36
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