Skip to content

feat(entities) Update batch state enum with more states#70

Merged
manjari25 merged 3 commits into
mainfrom
manjari/add-batch-states
Feb 25, 2026
Merged

feat(entities) Update batch state enum with more states#70
manjari25 merged 3 commits into
mainfrom
manjari/add-batch-states

Conversation

@manjari25
Copy link
Copy Markdown
Contributor

@manjari25 manjari25 commented Feb 25, 2026

Summary

feat(entities) Update batch state enum with more states

What?

Added batch state constants (scheduled, speculating, finalizing, succeeded, failed, cancelled,
cancellationfailed) and an IsTerminal() method to BatchState with table-driven tests.

Why?

This state information is needed to inspect batches that should be under consideration for dependency graph calculation by the batch manager.

Test Plan

Unit tests added.

Issues

@manjari25 manjari25 marked this pull request as ready for review February 25, 2026 01:12
Comment thread entity/batch.go Outdated
Comment thread entity/batch.go Outdated
Comment thread entity/batch.go Outdated
Comment thread entity/batch_test.go
@manjari25 manjari25 force-pushed the manjari/add-batch-states branch from e52e353 to d642d78 Compare February 25, 2026 17:32
@manjari25 manjari25 merged commit ce61398 into main Feb 25, 2026
8 checks passed
@behinddwalls behinddwalls deleted the manjari/add-batch-states 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