Skip to content

Commit d642d78

Browse files
committed
update statename and comment
1 parent 92e542b commit d642d78

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

entity/batch.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ type BatchState string
66
const (
77
// BatchStateUnknown is the unreachable state. It is set by default when the structure is initialized. It should never be seen in the system.
88
BatchStateUnknown BatchState = ""
9-
// BatchStateScheduled is the state of a batch that has been scheduled for processing.
10-
BatchStateScheduled BatchState = "scheduled"
9+
// BatchStateCreated is the state of a batch that has been created for processing.
10+
BatchStateCreated BatchState = "created"
1111
// BatchStateSpeculating is the state of a batch that is undergoing speculative execution.
1212
BatchStateSpeculating BatchState = "speculating"
1313
// BatchStateFinalizing is the state of a batch that is being finalized after speculative execution.
1414
BatchStateFinalizing BatchState = "finalizing"
1515
// BatchStateSucceeded is the terminal state of a batch that has been successfully landed.
1616
BatchStateSucceeded BatchState = "succeeded"
17-
// BatchStateFailed is the terminal state of a batch that has failed to land.
17+
// BatchStateFailed is the terminal state of a batch that has failed.
1818
BatchStateFailed BatchState = "failed"
1919
// BatchStateCancelled is the terminal state of a batch that was cancelled before completion.
2020
BatchStateCancelled BatchState = "cancelled"

entity/batch_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ func TestBatchState_IsTerminal(t *testing.T) {
1313
terminal bool
1414
}{
1515
{name: "unknown", state: BatchStateUnknown, terminal: false},
16-
{name: "scheduled", state: BatchStateScheduled, terminal: false},
16+
{name: "created", state: BatchStateCreated, terminal: false},
1717
{name: "speculating", state: BatchStateSpeculating, terminal: false},
1818
{name: "finalizing", state: BatchStateFinalizing, terminal: false},
1919
{name: "succeeded", state: BatchStateSucceeded, terminal: true},

0 commit comments

Comments
 (0)