Adding signal handling (e.g. SIGKILL/SIGTERM) to an app that uses petrel is a bulky and possibly confusing piece of boilerplate. It might be useful to add a config option which would have that handled internally, with the final action of petrel to be sending a message to the app that it has received a shutdown signal.
Actually, this last part already happens, but its meaning (and what the app might want to do because of it) would change slightly.
Adding signal handling (e.g. SIGKILL/SIGTERM) to an app that uses petrel is a bulky and possibly confusing piece of boilerplate. It might be useful to add a config option which would have that handled internally, with the final action of petrel to be sending a message to the app that it has received a shutdown signal.
Actually, this last part already happens, but its meaning (and what the app might want to do because of it) would change slightly.