Skip to content

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

Merged
ubettigole merged 1 commit into
mainfrom
abettigole/cancel_batch_resolution
Aug 1, 2026
Merged

fix(cancel): cancel all applicable batch attempts#454
ubettigole merged 1 commit into
mainfrom
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

#354

@ubettigole
ubettigole marked this pull request as ready for review July 29, 2026 00:40
@ubettigole
ubettigole requested review from a team, behinddwalls and sbalabanov as code owners July 29, 2026 00:40
@ubettigole
ubettigole force-pushed the abettigole/cancel_batch_resolution branch from b6fb666 to 78942af Compare July 31, 2026 01:02
@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
Comment thread submitqueue/entity/batch.go Outdated
@ubettigole
ubettigole force-pushed the abettigole/cancel_batch_resolution branch from fc4115a to e055992 Compare July 31, 2026 22:38
@ubettigole
ubettigole added this pull request to the merge queue Aug 1, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue because the pull requests in the stack were not ordered correctly in the queue Aug 1, 2026
@ubettigole
ubettigole force-pushed the abettigole/cancel_batch_resolution branch from e055992 to c87cc2f Compare August 1, 2026 17:41
Base automatically changed from abettigole/creating_batch_compat to main August 1, 2026 17:54
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 c87cc2f to d95ab4e Compare August 1, 2026 17:54
@ubettigole
ubettigole added this pull request to the merge queue Aug 1, 2026
Merged via the queue into main with commit 549017b Aug 1, 2026
15 checks passed
@behinddwalls
behinddwalls deleted the abettigole/cancel_batch_resolution branch August 1, 2026 18:25
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