bugfix + reset timed out tasks

This commit is contained in:
simon987
2019-03-01 19:48:48 -05:00
parent 67cdd1e89e
commit 258a3c56eb
9 changed files with 60 additions and 22 deletions

View File

@@ -155,7 +155,8 @@ BEGIN
INSERT INTO worker_verifies_task (worker, verification_hash, task)
SELECT wid, ver, task.id
FROM task
WHERE assignee = wid;
WHERE assignee = wid
AND task.id = tid;
DELETE
FROM task