remove queue after we are done with it

This commit is contained in:
Enno Rehling 2019-02-10 10:07:08 +01:00
parent a87e9b6c5c
commit 119e9dbecc
2 changed files with 2 additions and 0 deletions

View File

@ -5,3 +5,4 @@ cd $(dirname $SCRIPT)
lockfile -r3 -l120 orders.queue.lock lockfile -r3 -l120 orders.queue.lock
python accept-orders.py "$@" python accept-orders.py "$@"
rm -f orders.queue.lock rm -f orders.queue.lock

View File

@ -129,6 +129,7 @@ for line in lines:
tmpfile.close() tmpfile.close()
openlog("orders") openlog("orders")
unlink(queue_file)
for line in lines: for line in lines:
tokens = split(line[:-1], ' ') tokens = split(line[:-1], ' ')