Skip to content

Commit 441d5b6

Browse files
committed
Increase shutdown cache TTL to 2 minutes (longer than long poll timeout)
1 parent d7d6577 commit 441d5b6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

common/dynamicconfig/constants.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,10 +477,11 @@ Deleted Redirect Rules will be kept in the DB (with DeleteTimestamp). After this
477477
)
478478
ShutdownWorkerCacheTTL = NewGlobalDurationSetting(
479479
"matching.ShutdownWorkerCacheTTL",
480-
60*time.Second,
480+
2*time.Minute,
481481
`ShutdownWorkerCacheTTL is the time to live for entries in the shutdown worker cache. When a worker calls
482482
ShutdownWorker, its WorkerInstanceKey is cached for this duration. Any poll arriving with a cached
483-
WorkerInstanceKey returns empty immediately, preventing task dispatch to a shutting-down worker.`,
483+
WorkerInstanceKey returns empty immediately, preventing task dispatch to a shutting-down worker.
484+
This should be longer than MatchingLongPollExpirationInterval (default 1 min) to catch any in-flight polls.`,
484485
)
485486
ReachabilityBuildIdVisibilityGracePeriod = NewNamespaceDurationSetting(
486487
"matching.wv.ReachabilityBuildIdVisibilityGracePeriod",

0 commit comments

Comments
 (0)