Moves the context and interrupt handler instantiation to the main function, thus adding a ctx context.Context parameter to runWorkflow(). This is to facilitate the isolation of the calls to WorkflowEngine.Parse() and Workflow.Run(), so that artifact cleanup has a chance to occur no matter where the execution stops in the code path.
Changes introduced with this PR
Moves the context and interrupt handler instantiation to the main function, thus adding a
ctx context.Context
parameter torunWorkflow()
. This is to facilitate the isolation of the calls toWorkflowEngine.Parse()
andWorkflow.Run()
, so that artifact cleanup has a chance to occur no matter where the execution stops in the code path.It's not ready.
By contributing to this repository, I agree to the contribution guidelines.