In production we compile to a single go binary and run it through systemctl. However restarts/stop don't work as they hang forever. I know we have to use kill -TERM etc but we don't know the in our CI?
Is there any docs or examples for an use-case like this?
INFO: Stopping processor
INFO: Processor stopped
INFO: Starting graceful shutdown
INFO: Waiting for all workers to finish...
INFO: All workers have finished
INFO: Exiting
However it seems to hang on Exiting and it never completes?
In production we compile to a single go binary and run it through systemctl. However restarts/stop don't work as they hang forever. I know we have to use kill -TERM etc but we don't know the in our CI?
Is there any docs or examples for an use-case like this?
EDIT: I now have this:
I get these logs:
However it seems to hang on Exiting and it never completes?