-
Notifications
You must be signed in to change notification settings - Fork 106
Running tasks
Lindsay Young edited this page Jul 25, 2017
·
4 revisions
If you have a short task that takes less than a day, use cf tasks This is good because it cleans up after its self and uses the code that is already deployed there. Tasks will be interrupted if the apps are redeployed. (We redeploy apps daily.)
If you have a long running task you will want to use a headless app. Here is the cloud.gov documentation on how to deploy one of these apps.
When naming your app, say what is running and end the name with -kill-expected-end-date. For example, if I am running "python manage.py update_all" as a headless app that will take a day and a half to run and it is July 25, you would name your app update-all-kill-07-27