@@ -16380,7 +16380,6 @@ func ParsedExecutionResult(ctx context.Context, workflowExecution WorkflowExecut
1638016380 return &workflowExecution, true, nil
1638116381 }
1638216382
16383-
1638416383 // 1. CHECK cache if it happened in another?
1638516384 // 2. Set cache
1638616385 // 3. Find executed without a result
@@ -17630,6 +17629,10 @@ func setExecutionVariable(actionResult ActionResult) bool {
1763017629
1763117630// Finds execution results and parameters that are too large to manage and reduces them / saves data partly
1763217631func compressExecution(ctx context.Context, workflowExecution WorkflowExecution, saveLocationInfo string) (WorkflowExecution, bool) {
17632+ if project.Environment == "worker" {
17633+ log.Printf("[DEBUG][%s] No need to make this execution any smaller", workflowExecution.ExecutionId)
17634+ return workflowExecution, false
17635+ }
1763317636
1763417637 //GetApp(ctx context.Context, id string, user User) (*WorkflowApp, error) {
1763517638 //return workflowExecution, false
@@ -23825,16 +23828,16 @@ func PrepareWorkflowExecution(ctx context.Context, workflow Workflow, request *h
2382523828 // The only key we care about in this case
2382623829 if key == "continue" {
2382723830 // Overwrite everything
23828- if workflowExecution.Status == "FINISHED" {
23831+ if workflowExecution.Status == "FINISHED" {
2382923832 workflowExecution.Status = "EXECUTING"
2383023833 }
2383123834
2383223835 unmarshalledDecision.Status = "RUNNING"
2383323836 unmarshalledDecision.Output = ""
2383423837 decision.Fields = []Valuereplace{
23835- Valuereplace{
23836- Key: "continue",
23837- Value: "How do you want to continue?",
23838+ Valuereplace{
23839+ Key: "continue",
23840+ Value: "How do you want to continue?",
2383823841 Answer: value,
2383923842 },
2384023843 }
@@ -23850,7 +23853,7 @@ func PrepareWorkflowExecution(ctx context.Context, workflow Workflow, request *h
2385023853 fieldsChanged = true
2385123854 cleanupFailures = true
2385223855 break
23853- }
23856+ }
2385423857
2385523858 continue
2385623859 }
@@ -32163,7 +32166,7 @@ func cleanupProtectedKeys(exec WorkflowExecution) WorkflowExecution {
3216332166 return exec
3216432167 }
3216532168
32166- if exec.Status == "FINISHED" || exec.Status == "ABORTED" {
32169+ if exec.Status == "FINISHED" || exec.Status == "ABORTED" {
3216732170 return exec
3216832171 }
3216932172
@@ -32173,7 +32176,6 @@ func cleanupProtectedKeys(exec WorkflowExecution) WorkflowExecution {
3217332176 return exec
3217432177 }
3217532178
32176-
3217732179 for resultKey, _ := range exec.Results {
3217832180 if exec.Results[resultKey].Status != "FINISHED" && exec.Results[resultKey].Status != "SUCCESS" {
3217932181 continue
0 commit comments