From f4747c2d3af2bb88c041dfa326feaf12cb7db9cc Mon Sep 17 00:00:00 2001 From: Mohamed Said Date: Tue, 6 Dec 2016 20:50:56 +0200 Subject: [PATCH] Use 'sync' as queue name for Sync Queues, used while logging failed sync jobs when running from within another parent job --- src/Illuminate/Queue/Jobs/SyncJob.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Illuminate/Queue/Jobs/SyncJob.php b/src/Illuminate/Queue/Jobs/SyncJob.php index bc9278ff93d9..763befe1c455 100755 --- a/src/Illuminate/Queue/Jobs/SyncJob.php +++ b/src/Illuminate/Queue/Jobs/SyncJob.php @@ -76,4 +76,14 @@ public function getJobId() { return ''; } + + /** + * Get the name of the queue the job belongs to. + * + * @return string + */ + public function getQueue() + { + return 'sync'; + } }