mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-29 19:36:20 -05:00
Removing start_initialize_flags because flags are initted in perpetual_check_db_is_up_worker. Logging when flags are initialized.
This commit is contained in:
parent
d0c9bec7f4
commit
a65fa1c6fb
2 changed files with 4 additions and 10 deletions
|
|
@ -192,6 +192,8 @@ def init_flags():
|
|||
# Only need to read from once DB at startup.
|
||||
return
|
||||
|
||||
logger.debug('Initializing flags...')
|
||||
|
||||
from wrolpi.db import get_db_session
|
||||
with get_db_session() as session:
|
||||
flags: WROLPiFlag = session.query(WROLPiFlag).one_or_none()
|
||||
|
|
@ -205,6 +207,8 @@ def init_flags():
|
|||
else:
|
||||
outdated_zims.clear()
|
||||
|
||||
logger.debug('Initialized flags')
|
||||
|
||||
|
||||
@contextlib.asynccontextmanager
|
||||
async def wait_for_flag(flag: Flag, timeout: int = 0):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue