Skip to content

Commit

Permalink
DE-106728: PushDelayedResolver to resolve delay before incrementing a…
Browse files Browse the repository at this point in the history
…ttempts count (#94)
  • Loading branch information
ptrzdnk authored Jun 4, 2024
1 parent c235e11 commit 8943492
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Jobs/FailResolving/PushDelayedResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ public function __construct(QueueManagerInterface $queueManager, LoggerInterface

public function resolve(JobInterface $job, Throwable $exception): void
{
$job->incrementAttempts();

$pushDelayInMilliseconds = $this->getDelayInMilliseconds($job, $exception);

$job->incrementAttempts();

$this->queueManager->pushDelayedWithMilliseconds($job, $pushDelayInMilliseconds);

$this->logger->warning(
Expand Down

0 comments on commit 8943492

Please sign in to comment.