mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-29 11:26:25 -05:00
Tags config is imported on startup.
This commit is contained in:
parent
ec03d784a3
commit
c01d62cd28
7 changed files with 153 additions and 17 deletions
7
main.py
7
main.py
|
|
@ -221,6 +221,13 @@ async def start_workers(app: Sanic):
|
|||
download_manager.start_workers()
|
||||
|
||||
|
||||
@api_app.before_server_start
|
||||
@limit_concurrent(1)
|
||||
async def main_import_tags_config(app: Sanic):
|
||||
from wrolpi import tags
|
||||
tags.import_tags_config()
|
||||
|
||||
|
||||
@api_app.after_server_start
|
||||
async def bandwidth_worker(app: Sanic):
|
||||
from wrolpi import status
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue