I am trying to figure out how to get a task to only fire one time. I
have multiple app servers (let's say 3 for right now). When I run the
deploy task cap production deploy, it deploys to all 3 servers just
fine. What I want is a task that fires after the production deploy
has been completed on
Eric,
I am trying to figure out how to get a task to only fire one time.
Tasks run once, they shouldn't run once per server they do run once on
each server
If you then have a task that should run on only one server in your group,
you need to isolate it somehow, name it with a responsibility,
Tasks run in parallel on all matching servers, if you have a task that you need
to only run on any one of the servers, like maybe a rake task that changes data
in the db, you only need one server to run that command
You can create a role with one server as suggested, you can also pass :once =