We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13e9403 commit c727eadCopy full SHA for c727ead
Repository/JobLogRepository.php
@@ -162,11 +162,11 @@ public function findJobLog(string $uuid): ?JobLog
162
}
163
164
/**
165
- * Removes all jobs older than ($this->ttl - 86400 seconds) from all secondary indexes
+ * Removes all jobs older than ($this->ttl) from all secondary indexes
166
*/
167
public function removeExpiredJobs(): void
168
{
169
- $interval = new \DateInterval(sprintf('PT%sS', $this->ttl - 86400));
+ $interval = new \DateInterval(sprintf('PT%sS', $this->ttl));
170
$before = (new \DateTime('now'))->sub($interval)->format('U');
171
172
$qb = $this->getEntityManager()->createQueryBuilder();
0 commit comments