Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
papac committed Sep 23, 2023
1 parent 929d7f0 commit 9b5787b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Queue/Adapters/DatabaseAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function run(string $queue = null): void
$this->sleep(1);
continue;
}

// Execute the onException method for notify the producer
// and let developper to decide if the job should be delete
$producer->onException($e);
Expand Down
3 changes: 2 additions & 1 deletion src/Queue/Adapters/SQSAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ public function run(?string $queue = null): void
app('logger')->error($e->getMessage(), $e->getTrace());

if (isset($message)) {
cache("job:failed:" . $message["ReceiptHandle"],
cache(
"job:failed:" . $message["ReceiptHandle"],
$message["Body"]
);
}
Expand Down

0 comments on commit 9b5787b

Please sign in to comment.