Sha256: 1e5d746e477a5c7b674bee45ba42544753eecef64a9345bed4b7cfaf142c0bce
Contents?: true
Size: 978 Bytes
Versions: 24
Compression:
Stored size: 978 Bytes
Contents
--- title: Run Single Task --- Sometimes you do not want to run a long running `service` but a one time task. Running Rails migrations are a good example of a one off task. Here is an example of how you would run a one time task. ``` ufo task hi-web --command bundle exec rake db:migrate ``` At the end of the output you should see you the task ARN: ```sh $ ufo task hi-web --command bundle exec rake db:migrate ... Running task_definition: hi-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 ``` <a id="prev" class="btn btn-basic" href="{% link _docs/run-in-pieces.md %}">Back</a> <a id="next" class="btn btn-primary" href="{% link _docs/migrations.md %}">Next Step</a> <p class="keyboard-tip">Pro tip: Use the <- and -> arrow keys to move back and forward.</p>
Version data entries
24 entries across 24 versions & 1 rubygems