Is There a Setting to Configure the Default Queue for All Internal Jobs in Laravel Excel? #4121
Unanswered
ovidiu-serafim
asked this question in
Q&A
Replies: 2 comments
-
Did you manage to figure this out? I've also raised the same question with no luck |
Beta Was this translation helpful? Give feedback.
0 replies
-
Just dropping this here because it helped me with something similar
in my case, it used my custom queue |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm currently using the Laravel Excel package to handle exports in my application. I've encountered a situation where I need to specify a custom queue for all jobs related to an export operation, not just the initial
QueueExport
job.When using the
Excel::queue()
method withonQueue()
, only theQueueExport
job is placed on the specified queue. The internal jobs, likeCloseSheet
,StoreQueuedExport
, and others, still use the default queue.Here's a sample code snippet of my current usage:
` public function export($exportObject, $filename, $progressBarId = null, ?string $queue = null)
{
$redisQueueLong = env('REDIS_QUEUE_LONG');
$filePath = self::EXPORT_DIRECTORY . $filename;
I've scoured the documentation but couldn't find a setting that would allow me to specify the queue for all these internal jobs. I'm writing to ask if there's an existing feature or setting that I might have missed that allows configuring the default queue for all jobs spawned by the Laravel Excel export process?
Beta Was this translation helpful? Give feedback.
All reactions