activity_state.pb.go ×4

Frontier kind: Code frontier

unlabeled · c_e80e18517598

2 tests · 2455 LOC · 118 files · introduces 0 tests · 55 LOC · 3 files

Introduces — evidence that enters the hierarchy at this concept

Code
8 ranges55 lines · 3 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
368 ranges2455 lines · 118 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.

3 files ranked by introduced lines: 55 introduced LOC across 8 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/chasm/lib/activity/activity.go 41 introduced LOC · 3 ranges

Open complete file

299 ctx chasm.Context,
300 namespace string,
301 > ) (*historyservice.RecordActivityTaskStartedResponse, error) { activity.go
302 > key := ctx.ExecutionKey()
303 > lastHeartbeat, _ := a.LastHeartbeat.TryGet(ctx)
304 > requestData := a.RequestData.Get(ctx)
305 > attempt := a.LastAttempt.Get(ctx)
306 > links := ctx.Links(a)
307 >
308 > return &historyservice.RecordActivityTaskStartedResponse{
309 > StartedTime: attempt.GetStartedTime(),
310 > Attempt: attempt.GetCount(),
311 > Priority: a.GetPriority(),
312 > RetryPolicy: a.GetRetryPolicy(),
313 > ActivityRunId: key.RunID,
314 > WorkflowNamespace: namespace,
315 > HeartbeatDetails: lastHeartbeat.GetDetails(),
316 > CurrentAttemptScheduledTime: a.dispatchTimeForAttempt(attempt),
317 > ScheduledEvent: &historypb.HistoryEvent{
318 > EventType: enumspb.EVENT_TYPE_ACTIVITY_TASK_SCHEDULED,
319 > EventTime: a.GetScheduleTime(),
320 > Attributes: &historypb.HistoryEvent_ActivityTaskScheduledEventAttributes{
321 > ActivityTaskScheduledEventAttributes: &historypb.ActivityTaskScheduledEventAttributes{
322 > ActivityId: key.BusinessID,
323 > ActivityType: a.GetActivityType(),
324 > Input: requestData.GetInput(),
325 > Header: requestData.GetHeader(),
326 > TaskQueue: a.GetTaskQueue(),
327 > ScheduleToCloseTimeout: a.GetScheduleToCloseTimeout(),
328 > ScheduleToStartTimeout: a.GetScheduleToStartTimeout(),
329 > StartToCloseTimeout: a.GetStartToCloseTimeout(),
330 > HeartbeatTimeout: a.GetHeartbeatTimeout(),
331 > },
332 > },
333 > Links: links,
334 > },
335 > }, nil
336 > }
337
338 // dispatchTimeForAttempt returns the dispatch time of the given attempt.
339 > func (a *Activity) dispatchTimeForAttempt(attempt *activitypb.ActivityAttemptState) *timestamppb.Timestamp { activity.go
340 > if dispatchTime := attempt.GetDispatchTime(); dispatchTime != nil {
341 return dispatchTime
342 }
343 > if attempt.GetCount() == 1 { activity.go
344 > return timestamppb.New(a.firstDispatchTime())
345 > }
346 return dispatchTimeForRetry(attempt)
347 }
go.temporal.io/server/chasm/lib/activity/gen/activitypb/v1/activity_state.pb.go 13 introduced LOC · 4 ranges

Open complete file

825 }
826
827 > func (x *ActivityAttemptState) GetDispatchTime() *timestamppb.Timestamp { activity_state.pb.go
828 > if x != nil {
829 > return x.DispatchTime
830 > }
831 return nil
832 }
947 }
948
949 > func (x *ActivityRequestData) GetInput() *v1.Payloads { activity_state.pb.go
950 > if x != nil {
951 > return x.Input
952 > }
953 return nil
954 }
955
956 > func (x *ActivityRequestData) GetHeader() *v1.Header { activity_state.pb.go
957 > if x != nil {
958 > return x.Header
959 > }
960 return nil
961 }
go.temporal.io/server/chasm/context_mock.go 1 introduced LOC · 1 range

Open complete file

146 return c.HandleLinks(component)
147 }
148 > return nil context_mock.go
149 }
150