fission / fission-workflows

Workflows for Fission: Fast, reliable and lightweight function composition for serverless functions
Apache License 2.0
371 stars 42 forks source link

Listen to system termination signals #152

Closed erwinvaneyk closed 6 years ago

erwinvaneyk commented 6 years ago

Currently termination can only be forced (as the context that is used to determine cancellation is never actually cancelled). This PR closes the context on termination signals from the OS.

This should reduce the runtime of tests especially (as a significant amount of time is spent on waiting for workflows process to finish after a SIGTERM.