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

@@ -113,7 +113,7 @@ func (database *Database) GetTaskFromProject(worker *Worker, projectId int64) *T
(
SELECT task.id
FROM task
INNER JOIN project project on task.project = project.id
INNER JOIN project on task.project = project.id
LEFT JOIN worker_verifies_task wvt on task.id = wvt.task AND wvt.worker=$1
WHERE NOT project.paused AND assignee IS NULL AND project.id=$2 AND status=1
AND (project.public OR (