From d2da00ed1327d408ce14ae233e1cbce91e547b90 Mon Sep 17 00:00:00 2001 From: KsaweryZietara Date: Wed, 18 Dec 2024 08:57:10 +0100 Subject: [PATCH] wip --- internal/process/provisioning/create_runtime_resource_step.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/process/provisioning/create_runtime_resource_step.go b/internal/process/provisioning/create_runtime_resource_step.go index c0c5c4e57e..1ac1fd6273 100644 --- a/internal/process/provisioning/create_runtime_resource_step.go +++ b/internal/process/provisioning/create_runtime_resource_step.go @@ -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 { 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)