We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63d7423 commit 7ce383fCopy full SHA for 7ce383f
1 file changed
core/services/cre/cre.go
@@ -977,12 +977,15 @@ func newWorkflowRegistrySyncerV2(
977
if opts.ShardOrchestratorClient != nil {
978
shardOrchestratorClient = opts.ShardOrchestratorClient
979
} else {
980
- var c shardorchestrator.ClientInterface
981
- c, err = newShardOrchestratorClient(cfg, lggr)
982
- if err != nil {
983
- return nil, nil, err
+ c, clientErr := newShardOrchestratorClient(cfg, lggr)
+ if clientErr != nil {
+ return nil, nil, clientErr
+ }
984
+ if c != nil {
985
+ shardOrchestratorClient = c
986
+ } else {
987
+ lggr.Debugw("ShardOrchestrator client not created (shard 0 runs the server)")
988
}
- shardOrchestratorClient = c
989
990
991
shardingEnabled := cfg.Sharding().ShardingEnabled()
0 commit comments