Skip to content

fix(cancel): cancel all applicable batch attempts - #454

Open
ubettigole wants to merge 1 commit into
abettigole/creating_batch_compatfrom
abettigole/cancel_batch_resolution
Open

fix(cancel): cancel all applicable batch attempts#454
ubettigole wants to merge 1 commit into
abettigole/creating_batch_compatfrom
abettigole/cancel_batch_resolution

Conversation

@ubettigole

@ubettigole ubettigole commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Summary

Batch retries mint new batch IDs, so a request may be associated with multiple batch attempts. Previously, cancellation stopped after finding one matching active batch, which could leave other attempts running.
Update cancellation to find every eligible batch containing the request. Created, Speculating, and already-Cancelling attempts are handed to speculate for cancellation, while Merging and terminal attempts retain their existing outcomes for conclude to reconcile. Creating attempts remain ignored because they have not been published and may not be fully initialized.

Matching batches are processed deterministically, and every cancellation failure is logged and counted while preserving the first error for classification.

Test Plan

Unit tests

Issues

Use request-to-batch assignments with a legacy all-state fallback and retry while a claimed request's batch is not yet visible.

Jira Issues: CODEM-304
@ubettigole
ubettigole force-pushed the abettigole/cancel_batch_resolution branch from 78942af to fc4115a Compare July 31, 2026 06:27
@ubettigole ubettigole changed the title fix(cancel): resolve durable batch ownership fix(cancel): cancel all applicable batch attempts Jul 31, 2026
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