[5.7] When scheduling a job, respect the already set queue#25216
Conversation
| $job = is_string($job) ? resolve($job) : $job; | ||
|
|
||
| if ($job instanceof ShouldQueue) { | ||
| $queue = $queue ?? $job->queue; |
There was a problem hiding this comment.
Any reason why you don't also consider the job connection?
There was a problem hiding this comment.
I just resubmitted #25159 so that it gets merged ASAP before 5.7 gets released which is basically any day now, so I didn't even consider the connection. But you are right, the connection should also be respected so I updated the PR accordingly.
b532761 to
5841a92
Compare
5841a92 to
a3749b1
Compare
|
I found I had to explicitly set the connection for my SQS queues to work. SQS would receive the message but it would continuously retry to process until it went into the dead letter queue. This failed to process even though my default connection was 'sqs'. while this worked Controller Job LoadManifestFile config/queue.php |
|
I am having the same issue with redis, it only dispatches to redis if I specify ->onConnection('redis'). |
Resubmit of #25159 with a proper test.