clocked_rate_limiter.go ×1

Frontier kind: Code frontier

unlabeled · c_24c08f890994

32 tests · 30 LOC · 1 file · introduces 0 tests · 2 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
1 range2 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
9 ranges30 lines · 1 file · Browse complete extent
All tests (intent)
32 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.

Introduced files, introduced tests, and structurally relevant concept specializationTestMultipleEnginesWorkflowTasksRangeStealing · 0 introduced LOCTestMultipleEnginesWorkf…TestMultipleEnginesActivitiesRangeStealing · 0 introduced LOCTestMultipleEnginesActiv…DataLoss · 0 introduced LOCDataLossInternal · 0 introduced LOCInternalDataLoss · 0 introduced LOCDataLossInternal · 0 introduced LOCInternalTestPollWorkflowTaskQueues_InternalError · 0 introduced LOCTestPollWorkflowTaskQueu…TestFailAddTaskWithHistoryExhausted · 0 introduced LOCTestFailAddTaskWithHisto…ActivityStartDuringTransition · 0 introduced LOCActivityStartDuringTrans…ObsoleteMatchingTask · 0 introduced LOCObsoleteMatchingTaskObsoleteMatchingTask · 0 introduced LOCObsoleteMatchingTaskTestPollWorkflowTaskQueues_DataLossError · 0 introduced LOCTestPollWorkflowTaskQueu…NotFound · 0 introduced LOCNotFoundObsoleteDispatchBuildId · 0 introduced LOCObsoleteDispatchBuildIdTestPollActivityTaskQueues_DataLossError · 0 introduced LOCTestPollActivityTaskQueu…ObsoleteDispatchBuildId · 0 introduced LOCObsoleteDispatchBuildIdTaskAlreadyStarted · 0 introduced LOCTaskAlreadyStartedTestPollActivityTaskQueues_InternalError · 0 introduced LOCTestPollActivityTaskQueu…task_writer.go ×3 · 10 introduced LOCtask_writer.go ×3NotFound · 0 introduced LOCNotFoundTaskAlreadyStarted · 0 introduced LOCTaskAlreadyStartedResourceExhausted · 0 introduced LOCResourceExhaustedTestDroppedTaskMetric_LabelKeysAreVersionScoped · 0 introduced LOCTestDroppedTaskMetric_La…NamespaceHandover · 0 introduced LOCNamespaceHandoverNamespaceHandover · 0 introduced LOCNamespaceHandoverResourceExhausted · 0 introduced LOCResourceExhaustedTestPollWorkflowTaskQueues_NamespaceHandover · 0 introduced LOCTestPollWorkflowTaskQueu…TestPollActivityTaskQueues_NamespaceHandover · 0 introduced LOCTestPollActivityTaskQueu…TestPollWorkflowTaskQueueWithRateLimiterError · 0 introduced LOCTestPollWorkflowTaskQueu…TestPollActivityTaskQueueWithRateLimiterError · 0 introduced LOCTestPollActivityTaskQueu…TestFailAddTaskWithHistoryError · 0 introduced LOCTestFailAddTaskWithHisto…clocked_rate_limiter.go ×1 · 10 introduced LOCclocked_rate_limiter.go …clocked_rate_limiter.go ×1 · 1 introduced LOCclocked_rate_limiter.go …clocked_rate_limiter.go ×1 · 2 introduced LOCclocked_rate_limiter.go …clocked_rate_limiter.go ×2 · 3 introduced LOCclocked_rate_limiter.go …clocked_rate_limiter.go ×1 · 2 introduced LOCclocked_rate_limiter.go …clocked_rate_limiter.go ×1 · 4 introduced LOCclocked_rate_limiter.go …clocked_rate_limiter.go ×1 · 3 introduced LOCclocked_rate_limiter.go …clocked_rate_limiter.go ×1 · 3 introduced LOCclocked_rate_limiter.go …clocked_rate_limiter.go ×1 · 3 introduced LOCclocked_rate_limiter.go …clocked_rate_limiter.go ×1 · 3 introduced LOCclocked_rate_limiter.go …clocked_rate_limiter.go ×1 · 3 introduced LOCclocked_rate_limiter.go …clocked_rate_limiter.go ×1 · 7 introduced LOCclocked_rate_limiter.go …TestOperatorServiceMetadata, TestWorkflowServiceMetadata · 0 introduced LOCTestOperatorServiceMetad…go.temporal.io/server/common/quotas/clocked_rate_limiter.go · 170 LOCquotas/clocked_rate_limi…go.temporal.io/server/common/quotas/dynamic_rate_limiter_impl.go · 150 LOCquotas/dynamic_rate_limi…go.temporal.io/server/common/quotas/rate_limiter_impl.go · 115 LOCquotas/rate_limiter_impl…go.temporal.io/server/service/matching/db.go · 995 LOCmatching/db.gogo.temporal.io/server/service/matching/matcher.go · 655 LOCmatching/matcher.gogo.temporal.io/server/service/matching/task_writer.go · 234 LOCmatching/task_writer.goTestOperatorServiceMetadata · introduced test · go.temporal.io/server/common/api/TestOperatorServiceMetadataTestOperatorServiceMetad…TestWorkflowServiceMetadata · introduced test · go.temporal.io/server/common/api/TestWorkflowServiceMetadataTestWorkflowServiceMetad…TestClockedRateLimiter_WaitN_NoRecycle · introduced test · go.temporal.io/server/common/quotas/TestClockedRateLimiter_WaitN_NoRecycleTestClockedRateLimiter_W…TestClockedRateLimiter_Wait_Recycle · introduced test · go.temporal.io/server/common/quotas/TestClockedRateLimiter_Wait_RecycleTestClockedRateLimiter_W…TestDroppedTaskMetric_LabelKeysAreVersionScoped · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Classic_Suite/TestDroppedTaskMetric_LabelKeysAreVersionScopedTestDroppedTaskMetric_La…TestFailAddTaskWithHistoryError · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Classic_Suite/TestFailAddTaskWithHistoryErrorTestFailAddTaskWithHisto…TestFailAddTaskWithHistoryExhausted · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Classic_Suite/TestFailAddTaskWithHistoryExhaustedTestFailAddTaskWithHisto…TestMultipleEnginesActivitiesRangeStealing · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Classic_Suite/TestMultipleEnginesActivitiesRangeStealingTestMultipleEnginesActiv…TestMultipleEnginesWorkflowTasksRangeStealing · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Classic_Suite/TestMultipleEnginesWorkflowTasksRangeStealingTestMultipleEnginesWorkf…TestPollActivityTaskQueueWithRateLimiterError · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Classic_Suite/TestPollActivityTaskQueueWithRateLimiterErrorTestPollActivityTaskQueu…TestPollActivityTaskQueues_DataLossError · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Classic_Suite/TestPollActivityTaskQueues_DataLossErrorTestPollActivityTaskQueu…ActivityStartDuringTransition · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Classic_Suite/TestPollActivityTaskQueues_DroppedTaskMetric/ActivityStartDuringTransitionActivityStartDuringTrans…DataLoss · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Classic_Suite/TestPollActivityTaskQueues_DroppedTaskMetric/DataLossDataLossInternal · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Classic_Suite/TestPollActivityTaskQueues_DroppedTaskMetric/InternalInternalNotFound · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Classic_Suite/TestPollActivityTaskQueues_DroppedTaskMetric/NotFoundNotFoundObsoleteDispatchBuildId · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Classic_Suite/TestPollActivityTaskQueues_DroppedTaskMetric/ObsoleteDispatchBuildIdObsoleteDispatchBuildIdObsoleteMatchingTask · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Classic_Suite/TestPollActivityTaskQueues_DroppedTaskMetric/ObsoleteMatchingTaskObsoleteMatchingTaskTaskAlreadyStarted · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Classic_Suite/TestPollActivityTaskQueues_DroppedTaskMetric/TaskAlreadyStartedTaskAlreadyStartedNamespaceHandover · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Classic_Suite/TestPollActivityTaskQueues_DroppedTaskMetric_NoEmissionOnPropagatedErrors/NamespaceHandoverNamespaceHandoverResourceExhausted · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Classic_Suite/TestPollActivityTaskQueues_DroppedTaskMetric_NoEmissionOnPropagatedErrors/ResourceExhaustedResourceExhaustedTestPollActivityTaskQueues_InternalError · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Classic_Suite/TestPollActivityTaskQueues_InternalErrorTestPollActivityTaskQueu…TestPollActivityTaskQueues_NamespaceHandover · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Classic_Suite/TestPollActivityTaskQueues_NamespaceHandoverTestPollActivityTaskQueu…TestPollWorkflowTaskQueueWithRateLimiterError · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Classic_Suite/TestPollWorkflowTaskQueueWithRateLimiterErrorTestPollWorkflowTaskQueu…TestPollWorkflowTaskQueues_DataLossError · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Classic_Suite/TestPollWorkflowTaskQueues_DataLossErrorTestPollWorkflowTaskQueu…DataLoss · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Classic_Suite/TestPollWorkflowTaskQueues_DroppedTaskMetric/DataLossDataLossInternal · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Classic_Suite/TestPollWorkflowTaskQueues_DroppedTaskMetric/InternalInternalNotFound · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Classic_Suite/TestPollWorkflowTaskQueues_DroppedTaskMetric/NotFoundNotFoundObsoleteDispatchBuildId · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Classic_Suite/TestPollWorkflowTaskQueues_DroppedTaskMetric/ObsoleteDispatchBuildIdObsoleteDispatchBuildIdObsoleteMatchingTask · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Classic_Suite/TestPollWorkflowTaskQueues_DroppedTaskMetric/ObsoleteMatchingTaskObsoleteMatchingTaskTaskAlreadyStarted · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Classic_Suite/TestPollWorkflowTaskQueues_DroppedTaskMetric/TaskAlreadyStartedTaskAlreadyStartedNamespaceHandover · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Classic_Suite/TestPollWorkflowTaskQueues_DroppedTaskMetric_NoEmissionOnPropagatedErrors/NamespaceHandoverNamespaceHandoverResourceExhausted · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Classic_Suite/TestPollWorkflowTaskQueues_DroppedTaskMetric_NoEmissionOnPropagatedErrors/ResourceExhaustedResourceExhaustedTestPollWorkflowTaskQueues_InternalError · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Classic_Suite/TestPollWorkflowTaskQueues_InternalErrorTestPollWorkflowTaskQueu…TestPollWorkflowTaskQueues_NamespaceHandover · introduced test · go.temporal.io/server/service/matching/TestMatchingEngine_Classic_Suite/TestPollWorkflowTaskQueues_NamespaceHandoverTestPollWorkflowTaskQueu…Focused concept · clocked_rate_limiter.go ×1 · 2 introduced LOCclocked_rate_limiter.go …

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.

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

go.temporal.io/server/common/quotas/clocked_rate_limiter.go 2 introduced LOC · 1 range

Open complete file

163 // so that the actual rate of completed actions is as close to the intended rate limit as possible.
164 // If no process is waiting for a token when RecycleToken is called, this is a no-op.
165 > func (l ClockedRateLimiter) RecycleToken() { clocked_rate_limiter.go
166 > select {
167 case l.recycleCh <- struct{}{}:
168 default: