From 5154e9521d480b71389babe8c869f2d62a1b43ba Mon Sep 17 00:00:00 2001 From: dennis Date: Wed, 1 Feb 2023 12:29:07 +0100 Subject: forgot to commit here --- queue2pgsql.py | 1 - run.sh | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/queue2pgsql.py b/queue2pgsql.py index a555846..f5be1d9 100644 --- a/queue2pgsql.py +++ b/queue2pgsql.py @@ -25,7 +25,6 @@ q.prune() # Event loop while True: if q.empty() == True: - print("Queue empty. Sleeping 10s") time.sleep(10) continue task = q.pop() diff --git a/run.sh b/run.sh index a46ec0b..8efffd5 100755 --- a/run.sh +++ b/run.sh @@ -7,4 +7,4 @@ cd ${0:h} setopt all_export source .env unsetopt all_export -./venv/bin/python3 $1 +./venv/bin/python3 $1 || exit 1 -- cgit v1.2.3