Skip to content

Handle workflow step handler exceptions#337

Merged
chubes4 merged 2 commits into
mainfrom
fix/workflow-exception-terminal-records
Jun 18, 2026
Merged

Handle workflow step handler exceptions#337
chubes4 merged 2 commits into
mainfrom
fix/workflow-exception-terminal-records

Conversation

@chubes4

@chubes4 chubes4 commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Catch Throwable during workflow step execution and normalize it into a failed step/run error with error_type: handler_exception.
  • Preserve the runner recorder lifecycle so throwing handlers produce a terminal failed update instead of escaping.
  • Add workflow runner smoke coverage for throwing handlers and terminal recorder updates.

Testing

  • php tests/workflow-runner-smoke.php
  • composer smoke
  • composer phpstan

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (GPT-5.5)
  • Used for: implemented and tested workflow exception terminal-record handling.

@chubes4 chubes4 merged commit dc4506d into main Jun 18, 2026
2 checks passed
@chubes4 chubes4 deleted the fix/workflow-exception-terminal-records branch June 18, 2026 12:41
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.

1 participant