diff options
author | dennis <d@ennis.no> | 2023-02-01 12:29:07 +0100 |
---|---|---|
committer | dennis <d@ennis.no> | 2023-02-01 12:29:07 +0100 |
commit | 5154e9521d480b71389babe8c869f2d62a1b43ba (patch) | |
tree | 73d13604e7c12344fbce36ccf36c9fcae828b95c | |
parent | cd to directory instead, so we have right working dir (diff) | |
download | energyscripts-5154e9521d480b71389babe8c869f2d62a1b43ba.tar.gz |
forgot to commit here
-rw-r--r-- | queue2pgsql.py | 1 | ||||
-rwxr-xr-x | run.sh | 2 |
2 files changed, 1 insertions, 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() @@ -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 |