mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 02:48:38 -04:00
Warning when server is shutting down.
This commit is contained in:
parent
f9227f234c
commit
2c5da4b12d
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
|
@ -186,7 +186,7 @@ async def initialize_configs(app: Sanic):
|
|||
@limit_concurrent(1)
|
||||
async def handle_server_shutdown(*args, **kwargs):
|
||||
"""Stop downloads when server is shutting down."""
|
||||
logger.debug('handle_server_shutdown')
|
||||
logger.warning('Shutting down')
|
||||
download_manager.stop()
|
||||
await cancel_refresh_tasks()
|
||||
await cancel_background_tasks()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue