Question

Cron jobs for app platform

Is there a way to launch a cron job in the app platform?

Subscribe
Share

This would be really useful

This would be really useful

Any updates on when this will be possible? I can’t think of any app Web Service that wouldn’t need some sort of cron functionality

Any updates on when this will be possible? I can’t think of any app Web Service that wouldn’t need some sort of cron functionality

Any updates on when this will be possible? I can’t think of any app Web Service that wouldn’t need some sort of cron functionality

Any updates on when this will be possible? I can’t think of any app Web Service that wouldn’t need some sort of cron functionality


Submit an 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.

Any news ? This would be a really useful feature !!

đź‘‹ @john375105

A cron jobs feature is on our roadmap, though I don’t have a public release date as of right now. In the meantime, one option is to run a Worker component that acts as a cron job.

If you needed something the runs continuously you could use a worker with a run command like:

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

Yea, this would be very helpful. I am have a django app and would like to use management commands that run out of cron

This comment has been deleted

Any update ? We need it for our Lumen 8 project.

Another alternative, at least for people who run Rails apps on App Platform:

Use a worker, and Sidekiq with Sidekiq-cron.

There is also Arask, which runs when rails server is started. Not sure about performance implications though…

Any news on this? we really need this feature

Any news of how to set a cronjobs in the app plataform?

It’s not working.

I added the code but my deployment keeps failing after I added this worker

This comment has been deleted