I am setting up a Laravel queue on my Digital Ocean App. Typically I have used supervisor but I have read it is problematic in this environment. This question says that using a Worker Component is the best way to do this, but I have no idea how to set one up.
I would need the worker to run the artisan command php artisan queue:work
inside the main app’s primary directory and make sure it stays running after every rebuild after the app is ready.
Any help would be appreciated.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Enter your email to get $200 in credit for your first 60 days with DigitalOcean.
New accounts only. By submitting your email you agree to our Privacy Policy.
Hello,
App Platform does not have an services that handle explicit queues or background jobs.
However we have a bunch of options for implementing these to fit your needs:
Sample code is available here: https://www.digitalocean.com/community/questions/laravel-app-platform-cron-job
https://www.digitalocean.com/community/questions/how-to-setup-cron-job-in-app-platform-using-laravel
Hope this helps!
Cheers, Sri Charan