Skip to content

DAP-16 Leader Job State Updates#4324

Closed
jcjones wants to merge 1 commit intojcj/4322-dap16-helper-job-state-updatesfrom
jcj/4320-dap16-leader-job-state-updates
Closed

DAP-16 Leader Job State Updates#4324
jcjones wants to merge 1 commit intojcj/4322-dap16-helper-job-state-updatesfrom
jcj/4320-dap16-leader-job-state-updates

Conversation

@jcjones
Copy link
Contributor

@jcjones jcjones commented Feb 4, 2026

Leader jobs should be transitioned from Active to Finished by the Driver, not by the Writer.

Fixes #4320.

Note

Stacked on #4322.

Leader jobs should be transitioned from Active to Finished by the Driver, not by the Writer.

Fixes #4320
@jcjones jcjones requested a review from a team as a code owner February 4, 2026 19:59
Comment on lines +6825 to +6826
Extension::new(ExtensionType::Reserved, Vec::new()),
Extension::new(ExtensionType::Reserved, Vec::new()),
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this is overkill in terms of inducing an error. We would normally reject this report earlier in the process on the leader side, both because there are two extensions with the same type, and we don't support this particular extension type. It should be sufficient to just have the mock helper response contain ReportError::InvalidMessage. Additional problems here might cause problems in the future if we get stricter about what related structs can contain.

);

// Determine the next Leader job state based on whether all reports are terminal.
let all_terminal = report_aggregations_to_write
Copy link
Contributor

Choose a reason for hiding this comment

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

Same observations as in #4323: if we're doing this here, we shouldn't do it again in the aggregation job writer. It seems like we consider it a safety net, but we should have enough confidence in our state transitions to avoid redundancy.

@jcjones
Copy link
Contributor Author

jcjones commented Feb 12, 2026

After trimming off the state-transition change, there's nothing left of this PR, so I am closing it.

@jcjones jcjones closed this Feb 12, 2026
@jcjones jcjones deleted the jcj/4320-dap16-leader-job-state-updates branch February 12, 2026 16:06
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.

3 participants