By fullammo
Hey!
In the Digital Ocean App Platform docs I was unable to find info about, how the “Job” component could affect my deployment flow on APP_PLATFORM when it is set to PRE_DEPLOY
i found in app spec reference, will it cancel the whole deployment process, or will it just happen, and not affect the deployment flow at all?
Thanks for the answers in advance!
Bendeguz
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!
Hey Bendeguz!
Great question! When you set a Job component to PRE_DEPLOY
on DigitalOcean App Platform, it runs before your app deployment starts. If the job fails, the entire deployment process should be canceled, meaning your app won’t be updated to the new version.
If the job succeeds, the deployment continues as usual. This is useful for tasks like database migrations or environment setup steps that need to be completed before the main app is deployed.
If you don’t want the job to block deployments, you can either:
0
) even if something minor fails.You can check out the docs here:
https://docs.digitalocean.com/products/app-platform/how-to/manage-jobs/
- Bobby
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.