Skip to content

Commit b5dc7ae

Browse files
Fix JobNotFoundException message in QueueManager
1 parent 75878ea commit b5dc7ae

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/Service/QueueManager.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,7 @@ public function getNextJob(): Promise
142142
} catch (\Throwable $exception) {
143143
yield $this->beanstalkClient->bury($jobBeanstalkId);
144144

145-
throw new JobNotFoundException(
146-
sprintf('Cannot fetch job %s from ElasticSearch. Job has been buried.', $jobUuid),
147-
0,
148-
$exception
149-
);
145+
throw new JobNotFoundException($jobUuid, 0, $exception);
150146
}
151147

152148
$this->saveJobBeanstalkId($job, $jobBeanstalkId);

0 commit comments

Comments
 (0)