Skip to content

Commit e95f2c3

Browse files
committed
fix: ensure jobs are deleted based on ttl
1 parent 99c2a65 commit e95f2c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Repository/JobLogRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public function findJobLog(string $uuid): ?JobLog
167167
public function removeExpiredJobs(): void
168168
{
169169
$interval = new \DateInterval(sprintf('PT%sS', $this->ttl));
170-
$before = (new \DateTime('now'))->sub($interval)->format('U');
170+
$before = (new \DateTime('now'))->sub($interval);
171171

172172
$qb = $this->getEntityManager()->createQueryBuilder();
173173
$qb->delete(JobLog::class, 'j')

0 commit comments

Comments
 (0)