Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
KsaweryZietara committed Dec 18, 2024
1 parent 419b7aa commit d2da00e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/process/provisioning/create_runtime_resource_step.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ func (s *CreateRuntimeResourceStep) Name() string {
}

func (s *CreateRuntimeResourceStep) Run(operation internal.Operation, log *slog.Logger) (internal.Operation, time.Duration, error) {
return s.operationManager.OperationFailed(operation, fmt.Sprintf("while updating Runtime resource object"), nil, log)

if time.Since(operation.UpdatedAt) > CreateRuntimeTimeout {

Check failure on line 75 in internal/process/provisioning/create_runtime_resource_step.go

View workflow job for this annotation

GitHub Actions / run-go-linter

unreachable: unreachable code (govet)
log.Info(fmt.Sprintf("operation has reached the time limit: updated operation time: %s", operation.UpdatedAt))
return s.operationManager.OperationFailed(operation, fmt.Sprintf("operation has reached the time limit: %s", CreateRuntimeTimeout), nil, log)
Expand Down

0 comments on commit d2da00e

Please sign in to comment.