Sha256: 1e81b9374229492e02bf33aeaabf2398f61e0388a1656bba52ac144678fc8667
Contents?: true
Size: 843 Bytes
Versions: 3
Compression:
Stored size: 843 Bytes
Contents
--- title: Run Single Task nav_order: 36 --- Sometimes you do not want to run a long running `service` but a one time task. Running Rails migrations are an example of a one off task. Here is an example of how you would run a one time task. ``` ufo task demo-web -c bundle exec rake db:migrate ``` At the end of the output you should see you the task ARN: ```sh $ ufo task demo-web -c bundle exec rake db:migrate ... Running task_definition: demo-web Task ARN: arn:aws:ecs:us-west-2:994926937775:task/a0e4229d-3d39-4b26-9151-6ab6869b84d4 $ ``` You can describe that task for more details: ```sh aws ecs describe-tasks --tasks arn:aws:ecs:us-west-2:994926937775:task/a0e4229d-3d39-4b26-9151-6ab6869b84d4 ``` You can check out the [ufo task](http://ufoships.com/reference/ufo-task/) reference for more details. {% include prev_next.md %}
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ufo-4.4.2 | docs/_docs/more/single-task.md |
ufo-4.4.1 | docs/_docs/more/single-task.md |
ufo-4.4.0 | docs/_docs/single-task.md |