mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Using db_up flag directly.
This commit is contained in:
parent
0b3f0ed637
commit
d82d5b67cb
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
|
@ -211,7 +211,7 @@ async def periodic_downloads(app: Sanic):
|
|||
download_manager.disable()
|
||||
return
|
||||
|
||||
async with flags.wait_for_flag(flags.db_up):
|
||||
async with flags.db_up.wait_for():
|
||||
download_manager.enable()
|
||||
app.add_task(download_manager.perpetual_download())
|
||||
|
||||
|
|
@ -224,7 +224,7 @@ async def start_workers(app: Sanic):
|
|||
download_manager.stop()
|
||||
return
|
||||
|
||||
async with flags.wait_for_flag(flags.db_up):
|
||||
async with flags.db_up.wait_for():
|
||||
download_manager.start_workers()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue