Tags config is imported on startup.

This commit is contained in:
Roland 2023-03-29 19:30:33 -06:00
parent ec03d784a3
commit c01d62cd28
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
7 changed files with 153 additions and 17 deletions

View file

@ -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