Skip to content

Commit

Permalink
update default length for dynamodb failed jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jan 22, 2025
1 parent 9bba0f7 commit 787cf26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Illuminate/Queue/Failed/DynamoDbFailedJobProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function log($connection, $queue, $payload, $exception)
'payload' => ['S' => $payload],
'exception' => ['S' => (string) $exception],
'failed_at' => ['N' => (string) $failedAt->getTimestamp()],
'expires_at' => ['N' => (string) $failedAt->addDays(3)->getTimestamp()],
'expires_at' => ['N' => (string) $failedAt->addDays(7)->getTimestamp()],
],
]);

Expand Down
2 changes: 1 addition & 1 deletion tests/Queue/DynamoDbFailedJobProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function testCanProperlyLogFailedJob()
'payload' => ['S' => json_encode(['uuid' => (string) $uuid])],
'exception' => ['S' => (string) $exception],
'failed_at' => ['N' => (string) $now->getTimestamp()],
'expires_at' => ['N' => (string) $now->addDays(3)->getTimestamp()],
'expires_at' => ['N' => (string) $now->addDays(7)->getTimestamp()],
],
]);

Expand Down

0 comments on commit 787cf26

Please sign in to comment.