start of graceful shutdown. 2. Close incoming business logic flow. For example: stop accepting new tasks for processing from queue, stop handling new incoming http requests, etc. 3. Set a forced timeout for completion current tasks or save them for future processing. Recommended value for this timeout is not more then 5 second. 4. Notify consumers about shutdown. For example: send heartbeat-shutdown. 5. Correctly disconnect from all connections. For example: database, RabbitMQ, Redis, etc. 6. Log finish of graceful shutdown and stop the process.