Skip to content

Commit

Permalink
Fix exception if job executed via "dispatch_now"
Browse files Browse the repository at this point in the history
  • Loading branch information
romanzipp committed May 7, 2018
1 parent c02217d commit 3f90b83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/QueueMonitorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,6 @@ protected function jobFinished(Job $job, bool $failed = false, $exception = null
*/
protected function shouldBeMonitored(Job $job): bool
{
return !method_exists($job, 'dontMonitor');
return method_exists($job, 'dontMonitor') == false && method_exists($job, 'getRawBody');
}
}

0 comments on commit 3f90b83

Please sign in to comment.