workflow.go ×6

Frontier kind: Joint frontier

unlabeled · c_f2cfbbdbabac

4 tests · 2246 LOC · 109 files · introduces 2 tests · 34 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
6 ranges34 lines · 1 files
Tests
2 tests

Contains — complete concept membership

All code (extent)
347 ranges2246 lines · 109 files · Browse complete extent
All tests (intent)
4 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.

2 tests introduced at this concept.

Introduced code

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

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

go.temporal.io/server/service/worker/deletenamespace/workflow.go 34 introduced LOC · 6 ranges

Open complete file

146 }
147
148 > params.Namespace = namespaceInfo.Namespace workflow.go
149 > params.NamespaceID = namespaceInfo.NamespaceID
150 >
151 > // Step 2. Mark namespace as deleted.
152 > ctx2 := workflow.WithLocalActivityOptions(ctx, localActivityOptions)
153 > err = workflow.ExecuteLocalActivity(ctx2, la.MarkNamespaceDeletedActivity, params.Namespace).Get(ctx, nil)
154 > if err != nil {
155 return result, err
156 }
157
158 > result.DeletedNamespaceID = params.NamespaceID workflow.go
159 >
160 > // Step 3. Rename namespace.
161 > ctx3 := workflow.WithLocalActivityOptions(ctx, localActivityOptions)
162 > err = workflow.ExecuteLocalActivity(ctx3, la.GenerateDeletedNamespaceNameActivity, params.NamespaceID, params.Namespace).Get(ctx, &result.DeletedNamespace)
163 > if err != nil {
164 return result, err
165 }
166
167 > ctx31 := workflow.WithLocalActivityOptions(ctx, localActivityOptions) workflow.go
168 > err = workflow.ExecuteLocalActivity(ctx31, la.RenameNamespaceActivity, params.Namespace, result.DeletedNamespace).Get(ctx, nil)
169 > if err != nil {
170 return result, err
171 }
172
173 // Step 4. Reclaim workflow resources asynchronously.
174 > ctx4 := workflow.WithChildOptions(ctx, reclaimResourcesWorkflowOptions) workflow.go
175 > ctx4 = workflow.WithWorkflowID(ctx4, fmt.Sprintf("%s/%s", reclaimresources.WorkflowName, result.DeletedNamespace))
176 >
177 > reclaimResourcesFuture := workflow.ExecuteChildWorkflow(ctx4, reclaimresources.ReclaimResourcesWorkflow, reclaimresources.ReclaimResourcesParams{
178 > DeleteExecutionsParams: deleteexecutions.DeleteExecutionsParams{
179 > Namespace: result.DeletedNamespace,
180 > NamespaceID: params.NamespaceID,
181 > Config: params.DeleteExecutionsConfig,
182 > },
183 > NamespaceDeleteDelay: params.NamespaceDeleteDelay,
184 > })
185 > var reclaimResourcesExecution workflow.Execution
186 > if err = reclaimResourcesFuture.GetChildWorkflowExecution().Get(ctx, &reclaimResourcesExecution); err != nil {
187 logger.Error("Child workflow error.", tag.Error(err))
188 return result, err
189 }
190 > logger.Info("Child workflow executed successfully.", tag.String("wf-child-type", reclaimresources.WorkflowName)) workflow.go
191 >
192 > logger.Info("Workflow finished successfully.")
193 > return result, nil
194 }