akkudoktoreos.server.eos.server_shutdown_task
- async akkudoktoreos.server.eos.server_shutdown_task() None
One-shot task for shutting down the EOS server.
This coroutine performs the following actions: 1. Ensures the cache is saved by calling the cache_save function. 2. Waits for 5 seconds to allow the EOS server to complete any ongoing tasks. 3. Gracefully shuts down the current process by sending the appropriate signal.
If running on Windows, the CTRL_C_EVENT signal is sent to terminate the process. On other operating systems, the SIGTERM signal is used.
Finally, logs a message indicating that the EOS server has been terminated.