uncommented the code block
This commit is contained in:
@@ -4530,21 +4530,11 @@ func checkStandaloneRun() {
|
|||||||
// Anything else here.
|
// Anything else here.
|
||||||
}
|
}
|
||||||
|
|
||||||
// workflowExecution.Results = newResults
|
workflowExecution.Results = newResults
|
||||||
// workflowExecution.Status = "EXECUTING"
|
workflowExecution.Status = "EXECUTING"
|
||||||
// workflowExecution.CompletedAt = 0
|
workflowExecution.CompletedAt = 0
|
||||||
|
|
||||||
// Creating a minimal payload to force reset without sending the full execution
|
marshalledResult, err := json.Marshal(workflowExecution)
|
||||||
// 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)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("[ERROR] Failed marshalling body: %s", err)
|
log.Printf("[ERROR] Failed marshalling body: %s", err)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user