File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ protected function createObjectPayload($job, $queue)
143
143
'uuid ' => (string ) Str::uuid (),
144
144
'displayName ' => $ this ->getDisplayName ($ job ),
145
145
'job ' => 'Illuminate\Queue\CallQueuedHandler@call ' ,
146
- 'maxTries ' => $ this ->getJobTries ($ job ) ?? null ,
146
+ 'maxTries ' => $ this ->getJobTries ($ job ),
147
147
'maxExceptions ' => $ job ->maxExceptions ?? null ,
148
148
'failOnTimeout ' => $ job ->failOnTimeout ?? false ,
149
149
'backoff ' => $ this ->getJobBackoff ($ job ),
@@ -191,13 +191,11 @@ public function getJobTries($job)
191
191
return ;
192
192
}
193
193
194
- if (isset ( $ job ->tries )) {
195
- return $ job -> tries ;
194
+ if (is_null ( $ tries = $ job ->tries ?? $ job -> tries () )) {
195
+ return ;
196
196
}
197
197
198
- if (method_exists ($ job , 'tries ' ) && ! is_null ($ job ->tries ())) {
199
- return $ job ->tries ();
200
- }
198
+ return $ tries ;
201
199
}
202
200
203
201
/**
You can’t perform that action at this time.
0 commit comments