Skip to content

Pass the reported job row to error handlers - #1401

Merged
bgentry merged 1 commit into
masterfrom
bg/fix-multi-job-error-handler
Sep 28, 2026
Merged

bgentry merged 1 commit into
masterfrom
bg/fix-multi-job-error-handler

Conversation

@bgentry

@bgentry bgentry commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

When an execution reports errors for several jobs, every error handler invocation currently receives the executor's original job row. Pass the row being reported to the error and panic handlers so each invocation sees the correct job ID, args, and attempt.

Add a regression case that reports errors for several jobs and verifies that each handler call receives that job's row.

@bgentry
bgentry force-pushed the bg/fix-multi-job-error-handler branch from 3e748cd to d4aacd3 Compare September 28, 2026 02:12
@bgentry
bgentry force-pushed the bg/fix-multi-job-error-handler branch from d4aacd3 to 737f8ab Compare September 28, 2026 15:36
When an execution reports errors for several jobs, each handler
invocation receives the executor's original row. Logging and retry
decisions for later jobs can therefore use the wrong ID, args, or
attempt.

Pass the row being reported to both error and panic handlers.
Cover an execution that reports errors for several jobs and verify
that each handler invocation receives its own row.
@bgentry
bgentry force-pushed the bg/fix-multi-job-error-handler branch from 737f8ab to 36d797e Compare September 28, 2026 15:44
@bgentry
bgentry marked this pull request as ready for review September 28, 2026 15:48
@bgentry
bgentry enabled auto-merge (squash) September 28, 2026 15:48
@bgentry
bgentry merged commit 32ddb87 into master Sep 28, 2026
15 checks passed
@bgentry
bgentry deleted the bg/fix-multi-job-error-handler branch September 28, 2026 15:50
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