finalizer.go ×2

Frontier kind: Joint frontier

unlabeled · c_b2edc36b537d

1 test · 569 LOC · 27 files · introduces 1 test · 7 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
2 ranges7 lines · 1 files
Tests
1 test

Contains — complete concept membership

All code (extent)
107 ranges569 lines · 27 files · Browse complete extent
All tests (intent)
1 testBrowse 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 specializationfinalizer.go ×6 · 32 introduced LOCfinalizer.go ×6capture_handler.go ×1 · 2 introduced LOCcapture_handler.go ×1capture_handler.go ×4 · 13 introduced LOCcapture_handler.go ×4capture_handler.go ×1 · 2 introduced LOCcapture_handler.go ×1finalizer.go ×2 · 3 introduced LOCfinalizer.go ×2finalizer.go ×2 · 7 introduced LOCfinalizer.go ×2capture_handler.go ×1 · 2 introduced LOCcapture_handler.go ×1capture_handler.go ×2 · 6 introduced LOCcapture_handler.go ×2finalizer.go ×1 · 2 introduced LOCfinalizer.go ×1finalizer.go ×1 · 5 introduced LOCfinalizer.go ×1capture_handler.go ×1 · 9 introduced LOCcapture_handler.go ×1capture_handler.go ×1 · 3 introduced LOCcapture_handler.go ×1finalizer.go ×1 · 7 introduced LOCfinalizer.go ×1noop_logger.go ×1 · 1 introduced LOCnoop_logger.go ×1zap_tag.go ×1 · 3 introduced LOCzap_tag.go ×1capture_handler.go ×1 · 7 introduced LOCcapture_handler.go ×1defs.go ×1 · 3 introduced LOCdefs.go ×1defs.go ×1 · 3 introduced LOCdefs.go ×1defs_base.go ×1 · 3 introduced LOCdefs_base.go ×1metrics.go ×1 · 1 introduced LOCmetrics.go ×1metrics.go ×1 · 1 introduced LOCmetrics.go ×1zap_tag.go ×1 · 5 introduced LOCzap_tag.go ×1defs.go ×5 · 91 introduced LOCdefs.go ×5noop_logger.go ×1 · 1 introduced LOCnoop_logger.go ×1zap_tag.go ×1 · 3 introduced LOCzap_tag.go ×1noop_logger.go ×1 · 3 introduced LOCnoop_logger.go ×1zap_tag.go ×1 · 5 introduced LOCzap_tag.go ×1tags.go ×9 · 37 introduced LOCtags.go ×9message.pb.go ×2 · 49 introduced LOCmessage.pb.go ×2cluster.pb.go ×2 · 200 introduced LOCcluster.pb.go ×2adaptive_pool.go ×1 · 2 introduced LOCadaptive_pool.go ×1adaptive_pool.go ×2 · 5 introduced LOCadaptive_pool.go ×2adaptive_pool.go ×1 · 2 introduced LOCadaptive_pool.go ×1adaptive_pool.go ×3 · 6 introduced LOCadaptive_pool.go ×3adaptive_pool.go ×1 · 2 introduced LOCadaptive_pool.go ×1adaptive_pool.go ×1 · 1 introduced LOCadaptive_pool.go ×1adaptive_pool.go ×1 · 2 introduced LOCadaptive_pool.go ×1adaptive_pool.go ×4 · 10 introduced LOCadaptive_pool.go ×4adaptive_pool.go ×1 · 3 introduced LOCadaptive_pool.go ×1adaptive_pool.go ×2 · 13 introduced LOCadaptive_pool.go ×2time_source.go ×1 · 4 introduced LOCtime_source.go ×1time_source.go ×1 · 3 introduced LOCtime_source.go ×1TestOperatorServiceMetadata, TestWorkflowServiceMetadata · 0 introduced LOCTestOperatorServiceMetad…go.temporal.io/server/api/deployment/v1/message.pb.go · 4650 LOCv1/message.pb.gogo.temporal.io/server/api/enums/v1/cluster.pb.go · 233 LOCv1/cluster.pb.gogo.temporal.io/server/api/enums/v1/common.pb.go · 288 LOCv1/common.pb.gogo.temporal.io/server/api/enums/v1/dlq.pb.go · 211 LOCv1/dlq.pb.gogo.temporal.io/server/api/enums/v1/fairness_state.pb.go · 147 LOCv1/fairness_state.pb.gogo.temporal.io/server/api/enums/v1/nexus.pb.go · 182 LOCv1/nexus.pb.gogo.temporal.io/server/api/enums/v1/predicate.pb.go · 194 LOCv1/predicate.pb.gogo.temporal.io/server/api/enums/v1/replication.pb.go · 338 LOCv1/replication.pb.gogo.temporal.io/server/api/enums/v1/task.pb.go · 480 LOCv1/task.pb.gogo.temporal.io/server/api/enums/v1/workflow.pb.go · 299 LOCv1/workflow.pb.gogo.temporal.io/server/api/enums/v1/workflow_task_type.pb.go · 148 LOCv1/workflow_task_type.pb…go.temporal.io/server/api/metrics/v1/message.pb.go · 128 LOCv1/message.pb.gogo.temporal.io/server/api/taskqueue/v1/message.pb.go · 1363 LOCv1/message.pb.gogo.temporal.io/server/common/build/build.go · 56 LOCbuild/build.gogo.temporal.io/server/common/clock/time_source.go · 56 LOCclock/time_source.gogo.temporal.io/server/common/finalizer/finalizer.go · 164 LOCfinalizer/finalizer.gogo.temporal.io/server/common/goro/adaptive_pool.go · 138 LOCgoro/adaptive_pool.gogo.temporal.io/server/common/log/noop_logger.go · 25 LOClog/noop_logger.gogo.temporal.io/server/common/log/tag/tags.go · 1039 LOCtag/tags.gogo.temporal.io/server/common/log/tag/zap_tag.go · 242 LOCtag/zap_tag.gogo.temporal.io/server/common/metrics/defs.go · 76 LOCmetrics/defs.gogo.temporal.io/server/common/metrics/defs_base.go · 30 LOCmetrics/defs_base.gogo.temporal.io/server/common/metrics/metrics.go · 85 LOCmetrics/metrics.gogo.temporal.io/server/common/metrics/metricstest/capture_handler.go · 145 LOCmetricstest/capture_hand…go.temporal.io/server/common/metrics/noop_impl.go · 58 LOCmetrics/noop_impl.gogo.temporal.io/server/common/metrics/option.go · 21 LOCmetrics/option.gogo.temporal.io/server/common/metrics/registry.go · 75 LOCmetrics/registry.goTestOperatorServiceMetadata · introduced test · go.temporal.io/server/common/api/TestOperatorServiceMetadataTestOperatorServiceMetad…TestWorkflowServiceMetadata · introduced test · go.temporal.io/server/common/api/TestWorkflowServiceMetadataTestWorkflowServiceMetad…TestNewRealClock_NewTimer · introduced test · go.temporal.io/server/common/clock/TestNewRealClock_NewTimerTestNewRealClock_NewTime…TestNewRealClock_NewTimer_Stop · introduced test · go.temporal.io/server/common/clock/TestNewRealClock_NewTimer_StopTestNewRealClock_NewTime…returns_once_timeout_has_been_reached · introduced test · go.temporal.io/server/common/finalizer/TestFinalizer/run/returns_once_timeout_has_been_reachedreturns_once_timeout_has…TestMutexMapBaggage · introduced test · go.temporal.io/server/common/metrics/TestBaggageBenchSuite/TestMutexMapBaggageTestMutexMapBaggageTestSyncMapBaggage · introduced test · go.temporal.io/server/common/metrics/TestBaggageBenchSuite/TestSyncMapBaggageTestSyncMapBaggageFocused concept · finalizer.go ×2 · 7 introduced LOCfinalizer.go ×2

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.

1 test introduced at this concept.

Introduced code

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

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

go.temporal.io/server/common/finalizer/finalizer.go 7 introduced LOC · 2 ranges

Open complete file

139 metrics.FinalizerRuns.With(f.metricsHandler).Record(1)
140 if unfinishedItems > 0 {
141 > metrics.FinalizerRunTimeouts.With(f.metricsHandler).Record(1) finalizer.go
142 > }
143 metrics.FinalizerItemsCompleted.With(f.metricsHandler).Record(int64(completedCallbacks))
144 metrics.FinalizerItemsUnfinished.With(f.metricsHandler).Record(unfinishedItems)
155 }
156
157 > case <-ctx.Done(): finalizer.go
158 > f.logger.Error("finalizer timed out",
159 > tag.Int("completed", completedCallbacks),
160 > tag.Int("unfinished", totalCount-completedCallbacks))
161 > return completedCallbacks
162 }
163 }