Sha256: 7db7437471a937be26d1a8205e31a9c1ccd28d1594397cc726e56ed12b91f176
Contents?: true
Size: 993 Bytes
Versions: 4
Compression:
Stored size: 993 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-prod --command bundle exec rake db:migrate ``` At the end of the output you should see you the task ARN: ```sh $ ufo task hi-web-prod --command bundle exec rake db:migrate ... Running task_definition: hi-web-prod 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ufo-2.0.0 | docs/_docs/single-task.md |
ufo-1.7.1 | docs/_docs/single-task.md |
ufo-1.7.0 | docs/_docs/single-task.md |
ufo-1.6.2 | docs/_docs/single-task.md |