Skip to content

Commit 787cf26

Browse files
committed
update default length for dynamodb failed jobs
1 parent 9bba0f7 commit 787cf26

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Illuminate/Queue/Failed/DynamoDbFailedJobProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function log($connection, $queue, $payload, $exception)
7272
'payload' => ['S' => $payload],
7373
'exception' => ['S' => (string) $exception],
7474
'failed_at' => ['N' => (string) $failedAt->getTimestamp()],
75-
'expires_at' => ['N' => (string) $failedAt->addDays(3)->getTimestamp()],
75+
'expires_at' => ['N' => (string) $failedAt->addDays(7)->getTimestamp()],
7676
],
7777
]);
7878

tests/Queue/DynamoDbFailedJobProviderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function testCanProperlyLogFailedJob()
4343
'payload' => ['S' => json_encode(['uuid' => (string) $uuid])],
4444
'exception' => ['S' => (string) $exception],
4545
'failed_at' => ['N' => (string) $now->getTimestamp()],
46-
'expires_at' => ['N' => (string) $now->addDays(3)->getTimestamp()],
46+
'expires_at' => ['N' => (string) $now->addDays(7)->getTimestamp()],
4747
],
4848
]);
4949

0 commit comments

Comments
 (0)