mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-25 18:40:06 -04:00
Displaying warning when no drive is mounted.
This commit is contained in:
parent
1951ca548d
commit
da340a00b3
12 changed files with 301 additions and 4 deletions
13
main.py
13
main.py
|
|
@ -346,6 +346,19 @@ async def perpetual_have_internet_worker():
|
|||
logger.error('Failed to check if internet is up', exc_info=e)
|
||||
|
||||
|
||||
@perpetual_signal(sleep=30)
|
||||
async def perpetual_media_mounted_worker():
|
||||
try:
|
||||
if flags._destinations_have_mounted_storage():
|
||||
flags.media_mounted.set()
|
||||
# Re-check less often once all destinations are covered.
|
||||
await asyncio.sleep(float(Seconds.minute * 5))
|
||||
else:
|
||||
flags.media_mounted.clear()
|
||||
except Exception as e:
|
||||
logger.error('Failed to check media mount status', exc_info=e)
|
||||
|
||||
|
||||
@perpetual_signal(sleep=30)
|
||||
async def perpetual_start_video_missing_comments_download():
|
||||
from modules.videos.video.lib import get_missing_videos_comments
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue