@@ -8330,7 +8330,6 @@ func SetWorkflow(ctx context.Context, workflow Workflow, id string, optionalEdit
83308330 }
83318331
83328332 // Find the key for "workflows_<workflow.org_id>" and update the cache for this one. If it doesn't exist, add it
8333-
83348333 // Get the cache for the workflows
83358334 cacheKey = fmt .Sprintf ("%s_workflows" , workflow .OrgId )
83368335 cache , err := GetCache (ctx , cacheKey )
@@ -11999,6 +11998,21 @@ func RunInit(dbclient datastore.Client, storageClient storage.Client, gceProject
1199911998 // In case of downtime / large requests
1200011999 if len (memcached ) > 0 {
1200112000 mc .Timeout = 10 * time .Second
12001+
12002+
12003+ if strings .Contains (memcached , "," ) {
12004+
12005+ newMemcached := []string {}
12006+ for _ , memcached := range strings .Split (memcached , "," ) {
12007+ memcached = strings .TrimSpace (memcached )
12008+ if len (memcached ) > 0 {
12009+ newMemcached = append (newMemcached , memcached )
12010+ }
12011+ }
12012+
12013+ log .Printf ("[DEBUG] Multiple memcached servers detected. Split into %#v" , newMemcached )
12014+ mc = gomemcache .New (newMemcached ... )
12015+ }
1200212016 }
1200312017
1200412018 requestCache = cache .New (35 * time .Minute , 35 * time .Minute )
@@ -13008,7 +13022,7 @@ func ValidateFinished(ctx context.Context, extra int, workflowExecution Workflow
1300813022
1300913023 workflowExecution , _ = Fixexecution (ctx , workflowExecution )
1301013024 //if rand.Intn(5) == 1 || len(workflowExecution.Results) >= len(workflowExecution.Workflow.Actions) {
13011- log .Printf ("[INFO][%s] Workflow Validation . Status: %s, Actions: %d, Extra: %d, Results: %d\n " , workflowExecution .ExecutionId , workflowExecution .Status , len (workflowExecution .Workflow .Actions ), extra , len (workflowExecution .Results ))
13025+ log .Printf ("[INFO][%s] Workflow Finished Check . Status: %s, Actions: %d, Extra: %d, Results: %d\n " , workflowExecution .ExecutionId , workflowExecution .Status , len (workflowExecution .Workflow .Actions ), extra , len (workflowExecution .Results ))
1301213026 if len (workflowExecution .Results ) >= len (workflowExecution .Workflow .Actions )+ extra && len (workflowExecution .Workflow .Actions ) > 0 {
1301313027 validResults := 0
1301413028 invalidResults := 0
0 commit comments