mardi 21 mai 2019

Process Dynamicall Created Laravel Queue

I am using Laravel Queues to process jobs for users, in background. For each user i have a separate queue like:

Process::withChain(
                            [
                                new Step1(),
                                new Step2()
                            ]
                        )->dispatch()->allOnQueue($user)->delay(now()->addMinutes(1));

now the issue is i dont know how i can dynamically process these queues by issuing following command

artisan queue:work --tries=3 --daemon --queue=<user_name>

any comments/suggestions are appreciated.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire