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

@ -157,3 +157,15 @@ if (!function_exists('cache_prefix')) {
return company_id() . '_';
}
}
if (!function_exists('running_in_queue')) {
/**
* Detect if application is running in queue.
*
* @return bool
*/
function running_in_queue()
{
return defined('APP_RUNNING_IN_QUEUE') ?? false;
}
}