mirror of
https://github.com/simon987/task_tracker.git
synced 2025-12-14 15:29:02 +00:00
bugfix + reset timed out tasks
This commit is contained in:
@@ -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
|
||||
@@ -176,3 +177,4 @@ BEGIN
|
||||
RETURN res IS NOT NULL;
|
||||
END;
|
||||
$$ LANGUAGE 'plpgsql';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user