daemonizable-command
daemonizable-command copied to clipboard
[Feature request] Add isShutdownRequested method
I suppose it will be a good feature to add the ability for commands to check if a shutdown was requested, e.g. in finish iteration I have a code that should wait some time to the next iteration, but if I can check that command should be shut down so there is no reason to execute this code.
If You agree, I can make a PR