activities.go ×2

Frontier kind: Joint frontier

unlabeled · c_d3ced0a498ba

1 test · 2202 LOC · 86 files · introduces 1 test · 11 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
3 ranges11 lines · 2 files
Tests
1 test

Contains — complete concept membership

All code (extent)
355 ranges2202 lines · 86 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.

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.

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

go.temporal.io/server/service/worker/deletenamespace/reclaimresources/activities.go 8 introduced LOC · 2 ranges

Open complete file

111 // Starting from the 8th attempt (after ~127s), workflow executions deletion must show some progress.
112 if activity.HasHeartbeatDetails(ctx) && activityInfo.Attempt > 7 {
113 > var previousAttemptCount int activities.go
114 > if err := activity.GetHeartbeatDetails(ctx, &previousAttemptCount); err != nil {
115 logger.Error("Unable to get previous heartbeat details.", tag.Error(err))
116 return err
117 }
118 > if count == previousAttemptCount { activities.go
119 > // No progress was made. Something bad happened on the task processor side or new executions were created during deletion.
120 > // Return non-retryable error and workflow will try to delete executions again.
121 > logger.Warn("No progress was made.", tag.Attempt(activityInfo.Attempt), tag.Counter(count))
122 > return errors.NewNoProgress(count)
123 > }
124 }
125
go.temporal.io/server/service/worker/deletenamespace/errors/errors.go 3 introduced LOC · 1 range

Open complete file

30 }
31
32 > func NewNoProgress(count int) error { errors.go
33 > return temporal.NewNonRetryableApplicationError(fmt.Sprintf("no progress was made: %d executions are still exist", count), NoProgressErrType, nil, count)
34 > }
35
36 func NewNotDeletedExecutionsStillExist(count int) error {