Skip to content

fix(cancel): resolve durable batch ownership - #454

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

fix(cancel): resolve durable batch ownership#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

Cancellation can race with batching after a request is claimed as Batched but before its batch or assignment becomes visible. The cancel controller can then take the request-only cancellation path while the batch controller subsequently persists an orphan batch, allowing invalid work to continue.

This PR makes cancellation resolve durable request-to-batch ownership, with an all-state fallback for legacy or partially persisted data. It retries during the claim-to-batch visibility window, waits for Creating batches to finish structural initialization, and preserves terminal batch outcomes instead of overwriting them with request-only cancellation.

Test Plan

Unit tests

Issues

#354

Stack

  1. feat(storage): add request batch assignments #452
  2. feat(orchestrator): support creating batches #453
  3. @ fix(cancel): resolve durable batch ownership #454
  4. feat(batch): make creation resumable #455

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
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