mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-04 02:04:03 +00:00
## What changed? Add revision number to Worker Deployment Version Data that is synced to Task Queues. ## Why? This allows making task queue registration also async, but more importantly, it prevent's race conditions between concurrent registrations, setCurrent/Ramping, drainage, and deletion. ## How did you test it? - [ ] built - [ ] run locally and tested manually - [ ] covered by existing tests - [x] added new unit test(s) - [ ] added new functional test(s) ## Potential risks None.
15 lines
337 B
Go
15 lines
337 B
Go
package testhooks
|
|
|
|
type Key int
|
|
|
|
const (
|
|
MatchingDisableSyncMatch Key = iota
|
|
MatchingLBForceReadPartition
|
|
MatchingLBForceWritePartition
|
|
UpdateWithStartInBetweenLockAndStart
|
|
UpdateWithStartOnClosingWorkflowRetry
|
|
TaskQueuesInDeploymentSyncBatchSize
|
|
MatchingIgnoreRoutingConfigRevisionCheck
|
|
MatchingDeploymentRegisterErrorBackoff
|
|
)
|