Skip to content

Commit 536a64f

Browse files
committed
Added better control for memcached
1 parent a972901 commit 536a64f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

db-connector.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11997,9 +11997,6 @@ func RunInit(dbclient datastore.Client, storageClient storage.Client, gceProject
1199711997

1199811998
// In case of downtime / large requests
1199911999
if len(memcached) > 0 {
12000-
mc.Timeout = 10 * time.Second
12001-
12002-
1200312000
if strings.Contains(memcached, ",") {
1200412001

1200512002
newMemcached := []string{}
@@ -12013,6 +12010,8 @@ func RunInit(dbclient datastore.Client, storageClient storage.Client, gceProject
1201312010
log.Printf("[DEBUG] Multiple memcached servers detected. Split into %#v", newMemcached)
1201412011
mc = gomemcache.New(newMemcached...)
1201512012
}
12013+
12014+
mc.Timeout = 10 * time.Second
1201612015
}
1201712016

1201812017
requestCache = cache.New(35*time.Minute, 35*time.Minute)

shared.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30409,7 +30409,7 @@ func checkExecutionStatus(ctx context.Context, exec *WorkflowExecution) *Workflo
3040930409

3041030410
workflow.Validation.TotalProblems = len(workflow.Validation.Errors) + len(workflow.Validation.SubflowApps)
3041130411

30412-
log.Printf("\n\n\nVALIDATION RUNNING\n\n\n")
30412+
//log.Printf("\n\n\nVALIDATION RUNNING\n\n\n")
3041330413

3041430414
// Updating the workflow to show the right status every time for now
3041530415
workflowChanged = true

0 commit comments

Comments
 (0)