fixed JobShouldQueue source_name issue..

This commit is contained in:
Cüneyt Şentürk
2022-02-15 13:20:07 +03:00
parent 951ca29215
commit 76e9eb39be
5 changed files with 39 additions and 8 deletions

View File

@ -37,6 +37,10 @@ class Queue extends Provider
});
app('events')->listen(JobProcessing::class, function ($event) {
if (! defined('APP_RUNNING_IN_QUEUE')) {
define('APP_RUNNING_IN_QUEUE', true);
}
$payload = $event->job->payload();
if (!array_key_exists('company_id', $payload)) {