maxcountryman / underway

⏳ Durable step functions via Postgres.
Apache License 2.0
72 stars 2 forks source link

shutdown method for jobs #37

Closed maxcountryman closed 1 month ago

maxcountryman commented 1 month ago

This provides a shutdown method for jobs via a new "job handle". Handles encapsulate the worker and scheduler tasks as well as a cancellation token that's passed down to the worker and scheduler.

We also introduce a method for setting the shutdown token on both the worker and scheduler.

maxcountryman commented 1 month ago

@kirillsalykin lmk if this approach works for you.

kirillsalykin commented 1 month ago

LGTM