task_queue_partition_manager.go ×4

Frontier kind: Code frontier

unlabeled · c_06fcce2614a1

2 tests · 5619 LOC · 193 files · introduces 0 tests · 28 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges28 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
1092 ranges5619 lines · 193 files · Browse complete extent
All tests (intent)
2 testsBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

No tests are introduced at this concept. Its intent tests are introduced by other concepts.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

2 files ranked by introduced lines: 28 introduced LOC across 5 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/matching/task_queue_partition_manager.go 19 introduced LOC · 4 ranges

Open complete file

224 effectiveNewMatcher = true
225 effectiveEnableFairness = false
226 > case enumsspb.FAIRNESS_STATE_V2: task_queue_partition_manager.go
227 > effectiveNewMatcher = true
228 > effectiveEnableFairness = pm.partition.SupportsFairness()
229 default:
230 pm.logger.Error("unknown fairnessState in user data")
497 // It determines the effective config based on the new autoEnable value and fairnessState,
498 // and unloads if the effective config differs from the current config.
499 > func (pm *taskQueuePartitionManagerImpl) autoEnableChanged(en bool) { task_queue_partition_manager.go
500 > _, err := pm.defaultQueueFuture.Get(context.Background())
501 > if err != nil {
502 return
503 }
504
505 // When fairnessState is UNSPECIFIED, autoEnable changes don't affect the effective config
506 > if pm.fairnessState == enumsspb.FAIRNESS_STATE_UNSPECIFIED { task_queue_partition_manager.go
507 return
508 }
509
510 > changeKey := pm.partition.GradualChangeKey() task_queue_partition_manager.go
511 > now := pm.engine.timeSource.Now()
512 >
513 > fairnessGC, _ := pm.config.EnableFairnessSub(nil)
514 > fairness := fairnessGC.Value(changeKey, now)
515 >
516 > newMatcherGC, _ := pm.config.NewMatcherSub(nil)
517 > newMatcher := newMatcherGC.Value(changeKey, now)
518 >
519 > effectiveNewMatcher, effectiveEnableFairness := pm.computeEffectiveConfig(en, fairness, newMatcher)
520 >
521 > if effectiveNewMatcher != pm.config.NewMatcher || effectiveEnableFairness != pm.config.EnableFairness {
522 pm.unloadFromEngine(unloadCauseConfigChange)
523 }
go.temporal.io/server/common/dynamicconfig/setting_gen.go 9 introduced LOC · 1 range

Open complete file

1368 }
1369
1370 > func (s TaskQueueTypedSetting[T]) dispatchUpdate(c *Collection, sub any, cvs []ConstrainedValue) { setting_gen.go
1371 > dispatchUpdate(
1372 > c,
1373 > s.key,
1374 > s.convert,
1375 > sub.(*subscription[T]),
1376 > cvs,
1377 > )
1378 > }
1379
1380 func (s TaskQueueTypedConstrainedDefaultSetting[T]) Subscribe(c *Collection) TypedSubscribableWithTaskQueueFilter[T] {