activity.go ×4
Frontier kind: Code frontier
unlabeled · c_a2ecc429a508
25 tests · 2366 LOC · 120 files · introduces 0 tests · 10 LOC · 2 files
Introduces — evidence that enters the hierarchy at this concept
Code
6 ranges 10 lines · 2 files
Tests
0 tests
Contains — complete concept membership
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.
Focus concept
Ancestors (broader)
Descendants (narrower)
Introduced files
Introduced tests
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.
JavaScript is disabled; use the native relationship evidence on this page to explore the same evidence.
Native relationship evidence
Every exact file and test below is linked only from the concept that introduces it.
activity.go ×4 — Focused concept
Introduced files:
heartbeat_deadline_exhausted — Ancestor (broader)
Introduced tests:
start_to_close_deadline_exhausted — Ancestor (broader)
Introduced tests:
heartbeat_maximum_attempts_reached — Ancestor (broader)
Introduced tests:
start_to_close_maximum_attempts_reached — Ancestor (broader)
Introduced tests:
activity_tasks.go ×4 — Ancestor (broader)
Introduced files:
activity_tasks.go ×4 — Ancestor (broader)
Introduced files:
activity.go ×2 — Ancestor (broader)
Introduced files:
activity.go ×2 — Ancestor (broader)
Introduced files:
activity.go ×12 — Ancestor (broader)
Introduced files:
activity.go ×6 — Ancestor (broader)
Introduced files:
Introduced tests:
start_to_close_timeout_with_heartbeat_details — Ancestor (broader)
Introduced tests:
heartbeat_timeout — Ancestor (broader)
Introduced tests:
heartbeat_timeout_with_heartbeat_details — Ancestor (broader)
Introduced tests:
start_to_close_timeout — Ancestor (broader)
Introduced tests:
heartbeat_timeout_without_heartbeat_details — Ancestor (broader)
Introduced tests:
activity.go ×3 — Ancestor (broader)
Introduced files:
Introduced tests:
schedule_to_close_timeout_from_started_status_with_heartbeat_details — Ancestor (broader)
Introduced tests:
schedule_to_close_timeout_from_started_status — Ancestor (broader)
Introduced tests:
terminate_started_activity, terminate_scheduled_activity, +1 — Ancestor (broader)
Introduced tests:
schedule_to_start_timeout,_never_started, schedule_to_close_timeout_from_scheduled,_never_started — Ancestor (broader)
Introduced tests:
statemachine.go ×1 — Ancestor (broader)
Introduced files:
activity.go ×1 — Ancestor (broader)
Introduced files:
activity_state.pb.go ×2 — Ancestor (broader)
Introduced files:
Introduced tests:
activity.go ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
paused_before_first_dispatch,_never_started, paused_during_retry_backoff,_stale_StartedTime, +1 — Ancestor (broader)
Introduced tests:
statemachine.go ×1 — Ancestor (broader)
Introduced files:
activity.go ×1 — Ancestor (broader)
Introduced files:
TestTransitionTerminated — Ancestor (broader)
Introduced tests:
activity.go ×1 — Ancestor (broader)
Introduced files:
activity.go ×1 — Ancestor (broader)
Introduced files:
activity_state.pb.go ×1 — Ancestor (broader)
Introduced files:
activity.go ×1 — Ancestor (broader)
Introduced files:
activity_state.pb.go ×1 — Ancestor (broader)
Introduced files:
activity.go ×1 — Ancestor (broader)
Introduced files:
statemachine.go ×4 — Ancestor (broader)
Introduced files:
activity.go ×1 — Ancestor (broader)
Introduced files:
activity.go ×2 — Ancestor (broader)
Introduced files:
activity_state.pb.go ×1 — Ancestor (broader)
Introduced files:
activity_state.pb.go ×2 — Ancestor (broader)
Introduced files:
activity.go ×1 — Ancestor (broader)
Introduced files:
activity_state.pb.go ×1 — Ancestor (broader)
Introduced files:
statemachine.go ×1 — Descendant (narrower)
Introduced files:
statemachine.go ×2 — Descendant (narrower)
Introduced files:
statemachine.go ×2 — Descendant (narrower)
Introduced files:
statemachine.go ×2 — Descendant (narrower)
Introduced files:
message.pb.go ×2 — Descendant (narrower)
Introduced files:
statemachine.go ×1 — Descendant (narrower)
Introduced files:
statemachine.go ×1 — Descendant (narrower)
Introduced files:
query_converter_util_legacy.go ×3 — Descendant (narrower)
Introduced files:
execution_maps.go ×6 — Descendant (narrower)
Introduced files:
execution_maps.go ×5 — Descendant (narrower)
Introduced files:
execution_maps.go ×5 — Descendant (narrower)
Introduced files:
fx.go ×1 — Descendant (narrower)
Introduced files:
Introduced tests:
activity_state.pb.go ×2 — Descendant (narrower)
Introduced files:
util.go ×2 — Descendant (narrower)
Introduced files:
visibility_store.go ×3 — Descendant (narrower)
Introduced files:
constants.go ×1 — Descendant (narrower)
Introduced files:
visibility.go ×2 — Descendant (narrower)
Introduced files:
Introduced tests:
constants.go ×1 — Descendant (narrower)
Introduced files:
message.pb.go ×2 — Descendant (narrower)
Introduced files:
Introduced tests:
util.go ×1 — Descendant (narrower)
Introduced files:
field.go ×2 — Descendant (narrower)
Introduced files:
util.go ×1 — Descendant (narrower)
Introduced files:
constants.go ×2 — Descendant (narrower)
Introduced files:
data_interfaces.go ×3 — Descendant (narrower)
Introduced files:
parent_pointer.go ×1 — Descendant (narrower)
Introduced files:
field.go ×2 — Descendant (narrower)
Introduced files:
field.go ×1 — Descendant (narrower)
Introduced files:
field.go ×1 — Descendant (narrower)
Introduced files:
message.pb.go ×2 — Descendant (narrower)
Introduced files:
field.go ×1 — Descendant (narrower)
Introduced files:
fixed_address_translator.go ×2 — Descendant (narrower)
Introduced files:
extension.pb.go ×2 — Descendant (narrower)
Introduced files:
field_internal.go ×1 — Descendant (narrower)
Introduced files:
parent_pointer.go ×1 — Descendant (narrower)
Introduced files:
search_attribute.go ×1 — Descendant (narrower)
Introduced files:
noop_moving_window_average.go ×1 — Descendant (narrower)
Introduced files:
test_impl.go ×2 — Descendant (narrower)
Introduced files:
search_attribute.go ×12 — Descendant (narrower)
Introduced files:
key.go ×1 — Descendant (narrower)
Introduced files:
priority.go ×1 — Descendant (narrower)
Introduced files:
setting_gen.go ×51 — Descendant (narrower)
Introduced files:
Introduced tests:
grpc_resolver.go ×2 — Descendant (narrower)
Introduced files:
config.go ×1 — Descendant (narrower)
Introduced files:
config.go ×1 — Descendant (narrower)
Introduced files:
predicates.pb.go ×21 — Descendant (narrower)
Introduced files:
service.pb.go ×2 — Descendant (narrower)
Introduced files:
message.pb.go ×2 — Descendant (narrower)
Introduced files:
constants.go ×3 — Descendant (narrower)
Introduced files:
Introduced tests:
constants.go ×1 — Descendant (narrower)
Introduced files:
Introduced tests:
constants.go ×1 — Descendant (narrower)
Introduced files:
task.pb.go ×1 — Descendant (narrower)
Introduced files:
message.pb.go ×2 — Descendant (narrower)
Introduced files:
defs.go ×1 — Descendant (narrower)
Introduced files:
defs.go ×5 — Descendant (narrower)
Introduced files:
Introduced tests:
tags.go ×9 — Descendant (narrower)
Introduced files:
message.pb.go ×2 — Descendant (narrower)
Introduced files:
cluster.pb.go ×2 — Descendant (narrower)
Introduced files:
route.go ×6 — Descendant (narrower)
Introduced files:
retrypolicy.go ×2 — Descendant (narrower)
Introduced files:
wildcard.go ×1 — Descendant (narrower)
Introduced files:
retrypolicy.go ×1 — Descendant (narrower)
Introduced files:
wildcard.go ×4 — Descendant (narrower)
Introduced files:
retrypolicy.go ×3 — Descendant (narrower)
Introduced files:
message.pb.go ×2 — Descendant (narrower)
Introduced files:
payload.go ×1 — Descendant (narrower)
Introduced files:
route.go ×1 — Descendant (narrower)
Introduced files:
route.go ×1 — Descendant (narrower)
Introduced files:
TestOperatorServiceMetadata, TestWorkflowServiceMetadata — Descendant (narrower)
Introduced tests:
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: 10 introduced LOC across 6 ranges.
Expand a file to inspect source; the > gutter marks introduced lines.
go.temporal.io/server/chasm/lib/activity/activity.go 7 introduced LOC · 4 ranges
Open complete file
397
// RecordCompleted applies the provided function to record activity completion.
398
// For standalone activities, it also triggers any registered completion callbacks.
399
>
func ( a * Activity ) RecordCompleted ( ctx chasm . MutableContext , applyFn func ( ctx chasm . MutableContext ) error ) error {
activity.go
400
>
if err := applyFn ( ctx ); err != nil {
401
return err
402
}
403
>
return callback . ScheduleStandbyCallbacks ( ctx , a . Callbacks )
activity.go
404
}
405
1890
// StoreOrSelf returns the store for the activity. If the store is not set as a field (e.g.
1891
// standalone activities), it returns the activity itself.
1892
>
func ( a * Activity ) StoreOrSelf ( ctx chasm . Context ) ActivityStore {
activity.go
1893
>
store , ok := a . Store . TryGet ( ctx )
1894
>
if ok {
1895
return store
1896
}
1898
}
1899
go.temporal.io/server/chasm/lib/callback/component.go 3 introduced LOC · 2 ranges
Open complete file
170
// triggering their invocation. Used by both workflows and standalone activities
171
// when the execution reaches a terminal state.
172
>
func ScheduleStandbyCallbacks ( ctx chasm . MutableContext , callbacks chasm . Map [ string , * Callback ]) error {
component.go
173
>
for _ , field := range callbacks {
174
cb := field . Get ( ctx )
175
if cb . Status != callbackspb . CALLBACK_STATUS_STANDBY {