mirror of
https://github.com/simon987/task_tracker.git
synced 2025-12-14 07:19:02 +00:00
bugfix + reset timed out tasks
This commit is contained in:
@@ -19,3 +19,6 @@ session:
|
||||
monitoring:
|
||||
snapshot_interval: "10h"
|
||||
history_length: "10h"
|
||||
|
||||
maintenance:
|
||||
reset_timed_out_tasks_interval: "5m"
|
||||
|
||||
@@ -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