Report this

What is the reason for this report?

Laravel on App Platform Worker issue running queue and scheduler

Posted on December 14, 2020

I have created an app platform worker, I am trying to run both Queue and Jobs at start but it seems like none of them are actually running. I have the following run commands:

heroku-php-apache2 public/ && while true; do echo “=> Running scheduler” php artisan schedule:run || true; echo “=> Sleeping for 60 seconds” sleep 60; done && php artisan queue:work



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.

I’m using this on a worker instance, you can check in your logs if it’s running or not (stdout goes there) - I’m not sure if you’re able to run it next to a webserver but standalone is fine (but an extra $)

    php artisan queue:work &
    while true; do
        echo "=> Running scheduler"
        php artisan schedule:run || true;
        echo "=> Sleeping for 60 seconds"
        sleep 60;
    done

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.