Ensured orborus is now in line with latest docker API's and golang apis

This commit is contained in:
Frikky
2025-04-05 01:04:10 +02:00
parent 04c28b08c7
commit a4c3d77f4c
7 changed files with 202 additions and 182 deletions
+1 -3
View File
@@ -784,7 +784,6 @@ func runWorkflowExecutionTransaction(ctx context.Context, attempts int64, workfl
return
}
//log.Printf("BASE LENGTH: %d", len(workflowExecution.Results))
workflowExecution, dbSave, err := shuffle.ParsedExecutionResult(ctx, *workflowExecution, actionResult, false, 0)
if err != nil {
b, suberr := json.Marshal(actionResult)
@@ -794,13 +793,12 @@ func runWorkflowExecutionTransaction(ctx context.Context, attempts int64, workfl
log.Printf("[ERROR] Failed running of parsedexecution: %s. Data: %s", err, string(b))
}
resp.WriteHeader(401)
resp.WriteHeader(400)
resp.Write([]byte(fmt.Sprintf(`{"success": false, "reason": "Failed updating execution"}`)))
return
}
_ = dbSave
//resultLength := len(workflowExecution.Results)
setExecution := true
if setExecution || workflowExecution.Status == "FINISHED" || workflowExecution.Status == "ABORTED" || workflowExecution.Status == "FAILURE" {
err = shuffle.SetWorkflowExecution(ctx, *workflowExecution, true)