Report this

What is the reason for this report?

Scheduled Tasks or Cronjobs with App Platform Worker

Posted on June 4, 2024

I’m looking to use App Platform for hosting some custom code. This is meant to be a scheduled type of task, so from what I understand, I’d want to set up a Worker component to run in the background. I have seen the docs and repo about the cron using Docker, over in the DigitalOcean-AppPlatform-Cron repo.

But I couldn’t find clarification on details regarding this Worker component. Is it a long running resource? I seem to be getting mixed answers as I search the internet, so I just wanted to be sure. I was thinking that if it was, then I could use something like node-cron within a script, and then have the Worker instance execute this script so that I can run some cron jobs. But I’d love to hear if this wouldn’t work.

Thanks in advance.

The developer cloud

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

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.