App Platform PRE_DEPLOY job being rolled up in the app's estimated costs.

- name: migrate
  kind: PRE_DEPLOY
    repo: my/repo
    branch: main
    deploy_on_push: true
  run_command: python migrate

This section of the app spec I’m using seems to be kicking up the price of my app estimated costs.

Wouldn’t this job only be running for a short period of time and then removed so it doesn’t add to the app’s monthly cost?

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Bobby Iliev
Site Moderator
Site Moderator badge
April 10, 2023

Hi there,

You are correct that the PRE_DEPLOY job should only run for a short period of time before the deployment and then stop. However, the estimated costs displayed on the DigitalOcean App Platform dashboard might include the job in the calculation, giving you an inflated estimate. The actual costs for the job will be based on the resources used during the execution and not the entire month.

It’s important to remember that the estimated costs shown on the dashboard are just that - estimates. Your actual billing will reflect the actual usage of resources during the job execution.

To have a clearer understanding of your actual billing, you can monitor your usage through the billing section of the DigitalOcean dashboard. This will give you an overview of the actual costs you are incurring for your app and its associated jobs.

However, if you still have concerns about the estimated costs or actual billing for your app, it’s recommended to reach out to DigitalOcean Support for clarification and assistance. They can help you understand the billing details and address any potential issues.

Please reach out to our amazing support team who will be more than happy to assist you with your issue! :)

Hope that helps!

- Bobby.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel
Get started for free

Enter your email to get $200 in credit for your first 60 days with DigitalOcean.

New accounts only. By submitting your email you agree to our Privacy Policy.

© 2023 DigitalOcean, LLC.