jobs:
- name: migrate
kind: PRE_DEPLOY
github:
repo: my/repo
branch: main
deploy_on_push: true
run_command: python manage.py 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?
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!
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.
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.
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.