Skip to content

Commit d3aad91

Browse files
committed
#220: Additional condition to move expired messages for DB queue
1 parent c6ec179 commit d3aad91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/drivers/db/Queue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ private function moveExpired()
243243
$this->db->createCommand()->update(
244244
$this->tableName,
245245
['reserved_at' => null],
246-
'[[reserved_at]] < :time - [[ttr]] and [[done_at]] is null',
246+
'[[reserved_at]] < :time - [[ttr]] and [[reserved_at]] is not null and [[done_at]] is null',
247247
[':time' => $this->reserveTime]
248248
)->execute();
249249
}

0 commit comments

Comments
 (0)