Closed frrist closed 2 months ago
Looks like a bug. Actually we've stopped using ExecutionStateType.IsTerminal()
in favour of Execution.IsTerminalState()
, but it is still being used in one place when printing cli progress
Got it, I have fixed this here: https://github.com/bacalhau-project/bacalhau/pull/4147/files#diff-b63449354c9d58981e007903938dbaac6119844a3eaec272e500e838cb28a0b0R50. Will close this issue out when #4147 merges as I noticed this bug when updating some of our tests to the new models.
The model Execution considers the following states to be terminal:
ExecutionStateAskForBidRejected
ExecutionStateBidRejected
ExecutionStateCancelled
ExecutionStateFailed
ExecutionStateCompleted
https://github.com/bacalhau-project/bacalhau/blob/17dbd8dac2fc47485b2a752f40d0d414078e6fe3/pkg/model/execution_state.go#L77-L79 https://github.com/bacalhau-project/bacalhau/blob/17dbd8dac2fc47485b2a752f40d0d414078e6fe3/pkg/model/execution_state.go#L60-L63
The model Execution considers the following states to be terminal:
ExecutionStateBidRejected
ExecutionStateCompleted
ExecutionStateFailed
ExecutionStateCancelled
https://github.com/bacalhau-project/bacalhau/blob/17dbd8dac2fc47485b2a752f40d0d414078e6fe3/pkg/models/execution.go#L45-L50
The different being
ExecutionStateAskForBidRejected
. @wdbaruni is this a bug?