From af7b59e4bb2982ad7e79f234215a9674eef1fb6c Mon Sep 17 00:00:00 2001 From: Hari Krishna Date: Mon, 9 Feb 2026 21:26:04 +0530 Subject: [PATCH] uncommented the code block --- functions/onprem/worker/worker.go | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/functions/onprem/worker/worker.go b/functions/onprem/worker/worker.go index 3ad67a33..6026db96 100644 --- a/functions/onprem/worker/worker.go +++ b/functions/onprem/worker/worker.go @@ -4530,21 +4530,11 @@ func checkStandaloneRun() { // Anything else here. } - // workflowExecution.Results = newResults - // workflowExecution.Status = "EXECUTING" - // workflowExecution.CompletedAt = 0 + workflowExecution.Results = newResults + workflowExecution.Status = "EXECUTING" + workflowExecution.CompletedAt = 0 - // Creating a minimal payload to force reset without sending the full execution - // This helps avoid validation issues and potential complexity limits - simpleReset := map[string]interface{}{ - "execution_id": executionId, - "authorization": authorization, - "status": "EXECUTING", - "results": []interface{}{}, - "completed_at": 0, - } - - marshalledResult, err := json.Marshal(simpleReset) + marshalledResult, err := json.Marshal(workflowExecution) if err != nil { log.Printf("[ERROR] Failed marshalling body: %s", err) os.Exit(1)