Skip to content

Commit

Permalink
Fix JobNotFoundException message in QueueManager
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianaromagnoli committed Jul 19, 2024
1 parent 75878ea commit b5dc7ae
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Service/QueueManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,7 @@ public function getNextJob(): Promise
} catch (\Throwable $exception) {
yield $this->beanstalkClient->bury($jobBeanstalkId);

throw new JobNotFoundException(
sprintf('Cannot fetch job %s from ElasticSearch. Job has been buried.', $jobUuid),
0,
$exception
);
throw new JobNotFoundException($jobUuid, 0, $exception);
}

$this->saveJobBeanstalkId($job, $jobBeanstalkId);
Expand Down

0 comments on commit b5dc7ae

Please sign in to comment.