Skip to content

feat(controller) Add batch ID generation via counter to batch controller#82

Merged
manjari25 merged 2 commits into
mainfrom
manjari/batch-manager-gen-id
Feb 25, 2026
Merged

feat(controller) Add batch ID generation via counter to batch controller#82
manjari25 merged 2 commits into
mainfrom
manjari/batch-manager-gen-id

Conversation

@manjari25
Copy link
Copy Markdown
Contributor

@manjari25 manjari25 commented Feb 25, 2026

Summary

feat(controller) Add batch ID generation via counter to batch controller

What?

The batch controller generates a unique batch ID using the counter.Counter extension (backed by MySQL). Each batch gets an ID in the format {queue}/batch/{seq} and a Batch entity is constructed from the request. Note that for now each batch maps to a single request. This will evolve in the future to have multiple requests map to a single batch with some conflict graph processing.

Why?

This wires in the counter extension to produce monotonically increasing, globally unique batch IDs per queue — a prerequisite for persisting batches and tracking their dependencies in future work.

Test Plan

Issues

#80

@manjari25 manjari25 marked this pull request as ready for review February 25, 2026 22:08
Comment thread orchestrator/controller/batch/batch_test.go
Comment thread orchestrator/controller/batch/batch_test.go
@manjari25 manjari25 merged commit fbac301 into main Feb 25, 2026
8 checks passed
@behinddwalls behinddwalls deleted the manjari/batch-manager-gen-id branch June 2, 2026 18:40
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