I have a python code that will only have scheduled jobs. Every day at a fixed time like 2am, I need to run a specific function in main.py file I noticed I can do this via the scheduled jobs feature. But my function can take upto an hour to complete and I found a doc saying job deployement timeout are 30 minutes. (https://docs.digitalocean.com/products/app-platform/details/limits/) Does this timeout apply to my use case as well?
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!
Hi there,
I might be wrong, but yes, that 30 minute limit does apply to scheduled jobs as well. Scheduled jobs on App Platform run in the same execution environment as other app components, so they inherit the same runtime and deployment limits.
I think that jobs are meant for short, bounded tasks rather than long running batch jobs.
A few alternatives which I can think of:
Move the job to a Droplet or a separate worker process where you control execution time.
Break the job into smaller chunks that each finish well under the timeout.
Use an external scheduler that triggers shorter tasks instead of one long run.
If long-running jobs are a core requirement, might be worth to reach out to the DigitalOcean support team and see if there is anything that could be increased on their end.
Heya, @87d92166c5bb4194a9100ed30ddd13
Scheduled jobs run in the same App Platform job environment, so they inherit the same timeout, and they’re really intended for short, bounded tasks rather than hour-long batch work.
If your job can take ~1 hour, the usual options are to run it on a Droplet/worker where you control runtime, or split it into smaller chunks that each finish well under 30 minutes (sometimes triggered by an external scheduler). If you truly need long-running jobs on App Platform, you could ask support, but I wouldn’t count on that limit being raised.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.