Skip to content

Skip downstream tasks on LLMBranchOperator reject - #71073

Open
guan404ming wants to merge 1 commit into
apache:mainfrom
guan404ming:llm-branch-reject-skip
Open

Skip downstream tasks on LLMBranchOperator reject#71073
guan404ming wants to merge 1 commit into
apache:mainfrom
guan404ming:llm-branch-reject-skip

Conversation

@guan404ming

@guan404ming guan404ming commented Aug 4, 2026

Copy link
Copy Markdown
Member

Why

  • Rejecting an LLMBranchOperator review failed the task, leaving downstream tasks upstream_failed.
  • ApprovalOperator treats reject as a human decision and skips downstream instead; failing on reject is documented as generally discouraged.
  • Follow-up to review feedback on Support require_approval in LLMBranchOperator #70651.

How

  • Reject now runs do_branch(context, None), skipping every downstream task.
  • New fail_on_reject flag (default False) restores the old fail behavior, mirroring ApprovalOperator.
  • approval_timeout expiry still fails the task.

E2E

Verified in breeze: trigger, review pauses the task, hit Reject, route_ticket ends success and all downstream branches end skipped (previously upstream_failed).

llm_branch_reject_skip_demo.webm

Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Fable 5)

Generated-by: Claude Code (Fable 5) following the guidelines

@guan404ming
guan404ming force-pushed the llm-branch-reject-skip branch from 5e7f377 to a8db156 Compare August 5, 2026 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant