mercredi 15 janvier 2020

Laravel push mailing within cron

There is react app + api on Laravel. The react app contains pages with the list of mailings( mail, SMS, pushes). The admin handles this list. Also, there are several console commands (cron scripts), which are executed every 10 minutes, hour and etc. These commands process mailings depend on their periodicity. This works well, but there is another task. Admin should be able to run the mailing manually. I've created a special endpoint for it, which runs cron with special params. As docs say, to run the command Artisan::call should be used. But the problem is a long time waiting. How can I do it async, or is the better solution exist?



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2Npquuk
via IFTTT

Aucun commentaire:

Enregistrer un commentaire