216
ensureNoPendingCloseTask bool,
217
stage *tasks.DeleteWorkflowExecutionStage,
219
>
ctx, cancel := context.WithTimeout(ctx, taskTimeout)
220
>
defer cancel()
221
>
222
>
workflowExecution := commonpb.WorkflowExecution{
223
>
WorkflowId: task.GetWorkflowID(),
224
>
RunId: task.GetRunID(),
225
>
}
226
>
227
>
weCtx, release, err := t.cache.GetOrCreateChasmExecution(
228
>
ctx,
229
>
t.shardContext,
230
>
namespace.ID(task.GetNamespaceID()),
231
>
&workflowExecution,
232
>
archetypeID,
233
>
locks.PriorityLow,
234
>
)
235
>
if err != nil {
236
return err
237
}
239
241
>
if err != nil {
242
return err
243
}