forked from github/server
remove queue after we are done with it
This commit is contained in:
parent
306c1d8659
commit
f83f17687b
2 changed files with 2 additions and 0 deletions
|
@ -5,3 +5,4 @@ cd $(dirname $SCRIPT)
|
|||
lockfile -r3 -l120 orders.queue.lock
|
||||
python accept-orders.py "$@"
|
||||
rm -f orders.queue.lock
|
||||
|
||||
|
|
|
@ -129,6 +129,7 @@ for line in lines:
|
|||
tmpfile.close()
|
||||
|
||||
openlog("orders")
|
||||
unlink(queue_file)
|
||||
|
||||
for line in lines:
|
||||
tokens = split(line[:-1], ' ')
|
||||
|
|
Loading…
Reference in a new issue