Skip to content

fix: post Jira comment when workflow nodes fail#58

Open
eshulman2 wants to merge 2 commits into
mainfrom
fix/error-reporting-to-jira
Open

fix: post Jira comment when workflow nodes fail#58
eshulman2 wants to merge 2 commits into
mainfrom
fix/error-reporting-to-jira

Conversation

@eshulman2

Copy link
Copy Markdown
Collaborator

Summary

When a workflow node fails (container crash, API error, etc.), the error was only logged to the worker console — users had no visibility on the Jira ticket. This adds centralized error reporting: after every workflow invocation, if last_error is set, the worker posts a comment to Jira with the error details and retry instructions.

Changes

  • src/forge/orchestrator/worker.py: Added _post_error_to_jira() method, called after every ainvoke() when last_error is set and the workflow isn't paused. Covers all 13 nodes that set last_error without any per-node changes.

Test plan

  • 925 unit tests pass
  • Trigger a container failure and verify the error comment appears on the Jira ticket

🤖 Generated with Claude Code

Nodes that hit errors set last_error in state but never notify the
user on Jira — the failure is only visible in worker logs. Added
centralized error reporting in the worker: after every workflow
invocation, if last_error is set the worker posts a comment to the
Jira ticket with the error details and retry instructions.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@eshulman2 eshulman2 force-pushed the fix/error-reporting-to-jira branch from 9fb39a7 to bcea49a Compare May 27, 2026 14:08
The container name was deterministic per ticket per PID, causing
name collisions when multiple containers run for the same ticket
in sequence (e.g., RCA → reflection → RCA). The third container
would fail to start because the name was already taken. Use a
UUID suffix instead.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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