Skip to content

Commit

Permalink
handle corrup entries in the task table better
Browse files Browse the repository at this point in the history
  • Loading branch information
lprobsth committed Feb 16, 2024
1 parent f231ca0 commit cc92b49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helper/buildmanager.php
Expand Up @@ -692,7 +692,7 @@ public function getBuildTasks($amount = PHP_INT_MAX)

// get the oldest task first
$rows = $this->db->queryAll(
'SELECT TaskID FROM Tasks WHERE State = ? ORDER BY Timestamp ASC LIMIT ?',
'SELECT TaskID FROM Tasks WHERE TaskID IS NOT NULL AND State = ? ORDER BY Timestamp ASC LIMIT ?',
[self::STATE_SCHEDULED, $amount]
);

Expand Down

0 comments on commit cc92b49

Please sign in to comment.