Skip to content

Commit 254b39e

Browse files
stklcodebackportbot[bot]
authored andcommitted
fix(jobs): restore background_jobs_expiration_days behavior
Snowflake ID in `JobRuns:deleteBefore()` is computed from given timestamp, but immediately overwritten by a literal value making the expiration setting have no effect. This looks like a leftover artifact from development that should be cleaned up. Remove the hardcoded ID to restore the desired behavior. Fixes: dc5499a Suggested-by: Michele Marcionelli Signed-off-by: Stefan Kalscheuer <stefan@stklcode.de>
1 parent 5e6469e commit 254b39e

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

lib/private/BackgroundJob/JobRuns.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ public function finished(int|string $runId, int $duration, int $memoryPeakUsage,
6363

6464
public function deleteBefore(int $timestamp): int {
6565
$beforeSnowflake = $this->snowflakeGenerator->minForTimeId($timestamp);
66-
$beforeSnowflake = '91480652934574081';
6766
$qb = $this->connection->getQueryBuilder();
6867
$result = $qb
6968
->delete(self::TABLE)

0 commit comments

Comments
 (0)