I have seen multiple questions about this topic spanning over the past couple of years and somebody always answers “This is in the roadmap but we can’t tell you when it will be done.”

At the moment the only workaround is to set up a whole other component (for at least $12/month on the professional subscription) which seems a bit silly considering that’s what it costs to host a whole app.

Can we please get some idea of when scheduled jobs (or cron jobs) will be available in the Apps Platform?

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.

×
Submit an Answer
1 answer

Hello,

A Job feature is already available for the DigitalOcean App Platform. This job feature allows you to run application code at a scheduled time.

For more information you could take a look at the official documentation here:

https://docs.digitalocean.com/products/app-platform/how-to/manage-jobs/

Regards,
Bobby

  • From the page you linked:
    Currently, App Platform only supports scheduling code to run at pre-deploy time, or after deploy time.

    It doesn’t appear to let you run application code at a scheduled time.

    • Hi there Chris,

      Yes, indeed you are right. Just checked this internally and it looks like that a cron job feature is on our roadmap but there is no ETA just yet.

      In the meantime, as a workaround, you could 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
      

      Regards,
      Bobby