arcalot / arcaflow-engine

Arcaflow is a highly-portable workflow engine enabling modular and validated pipelines through containerized plugins.
https://arcalot.io/arcaflow/
Apache License 2.0
7 stars 9 forks source link

Move Workflow Context and Interrupt Handler Instantiation #195

Closed mfleader closed 5 months ago

mfleader commented 5 months ago

Changes introduced with this PR

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.

It's not ready.


By contributing to this repository, I agree to the contribution guidelines.