We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c1ca4a commit 5fba0d4Copy full SHA for 5fba0d4
src/Jobs/AMQPJob.php
@@ -125,11 +125,14 @@ public function getQueue()
125
* Get the job identifier.
126
*
127
* @return string
128
- * @throws \OutOfBoundsException
129
*/
130
public function getJobId()
131
{
132
- return $this->amqpMessage->get('message_id');
+ try {
+ return $this->amqpMessage->get('message_id');
133
+ } catch (\OutOfBoundsException $exception){
134
+ return null;
135
+ }
136
}
137
138
0 commit comments