From 61c69db72ff9e0fdb1df252b6be2433eb826da53 Mon Sep 17 00:00:00 2001 From: HeNine <> Date: Sun, 7 Nov 2021 16:29:21 +0100 Subject: [PATCH] more waiting --- buscribe/buscribe/main.py | 3 +++ docker-compose.yml | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/buscribe/buscribe/main.py b/buscribe/buscribe/main.py index bead596..ac69b22 100644 --- a/buscribe/buscribe/main.py +++ b/buscribe/buscribe/main.py @@ -91,6 +91,8 @@ def main(channel, database="", base_dir=".", if not segments: # We reached end of segments and are waiting for some new ones sleep(30) + logging.info("Waiting for new segments.") + continue if recognizer.segments_start_time is None: recognizer.segments_start_time = segments[0].start @@ -114,5 +116,6 @@ def main(channel, database="", base_dir=".", # Give it a bit of time and continue. # Note: if the gap is not filled within 30s, we jump to the next available segment. sleep(30) + logging.info("Waiting for new segments.") start_time = segments_end_time diff --git a/docker-compose.yml b/docker-compose.yml index b09e4b9..e8cb4cf 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,7 +14,7 @@ services: image: buscribe:0.0.0 command: [ "loadingreadyrun", "--start-time='2021-11-05T00:00", - "--end-time='2021-11-30T00:00" . + "--end-time='2021-11-30T00:00", "--database=postgresql://vst:flnMSYPRf@mula.lan:6543/buscribe_lrr", "--model=/usr/share/buscribe/vosk-model-en-us-0.22/" ] volumes: @@ -23,8 +23,8 @@ services: buscribeapilrr: image: buscribe-api:0.0.0 command: [ - "--database=postgresql://vst:flnMSYPRf@mula.lan:6543/buscribe_lrr" - "--bustime-start=2021-11-13T02:00:00"] + "--database=postgresql://vst:flnMSYPRf@mula.lan:6543/buscribe_lrr", + "--bustime-start=2021-11-13T02:00:00" ] networks: wubloader_default: