Skip to content

Commit

Permalink
fix(function): add created to the list of terminal states (#1098)
Browse files Browse the repository at this point in the history
  • Loading branch information
remyleone authored Feb 24, 2022
1 parent 4133d51 commit 1866d93
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions api/function/v1beta1/function_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,10 @@ func (s *API) WaitForFunction(req *WaitForFunctionRequest, opts ...scw.RequestOp
}

terminalStatus := map[FunctionStatus]struct{}{
FunctionStatusError: {},
FunctionStatusReady: {},
FunctionStatusLocked: {},
FunctionStatusCreated: {},
FunctionStatusError: {},
FunctionStatusLocked: {},
FunctionStatusReady: {},
}

function, err := async.WaitSync(&async.WaitSyncConfig{
Expand Down

0 comments on commit 1866d93

Please sign in to comment.