goflow icon indicating copy to clipboard operation
goflow copied to clipboard

Support Graceful shutdown

Open skovtunenko opened this issue 1 year ago • 1 comments

Hello, in version v2.2.1, there is no support for graceful shutdown for the application.

The application and its jobs needs to know (and react accordingly) when there is a time to stop executing the flow.

I assume this is somewhat related to https://github.com/fieldryand/goflow/issues/17

skovtunenko avatar Aug 20 '24 18:08 skovtunenko

Great point. Starting with v3.0.1 (still in pre-release) the application accepts a context allowing graceful shutdown, so that running jobs that get interrupted will be marked as failed. The context is also passed to the task operator, allowing users to implement any clean-up actions for interrupted tasks.

fieldryand avatar Nov 20 '24 09:11 fieldryand