File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,15 +6,15 @@ type BatchState string
66const (
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"
Original file line number Diff line number Diff 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 },
You can’t perform that action at this time.
0 commit comments