https://github.com/datarockets/capistrano-resque-pool
Capistrano integration for Resque pool https://github.com/nevans/resque-pool.
https://github.com/datarockets/capistrano-resque-pool
Last synced: 4 months ago
JSON representation
Capistrano integration for Resque pool https://github.com/nevans/resque-pool.
- Host: GitHub
- URL: https://github.com/datarockets/capistrano-resque-pool
- Owner: datarockets
- License: mit
- Created: 2015-01-29T11:34:20.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2021-01-12T18:49:31.000Z (over 5 years ago)
- Last Synced: 2026-02-25T03:52:13.689Z (4 months ago)
- Language: Ruby
- Size: 18.6 KB
- Stars: 13
- Watchers: 30
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Capistrano::Resque::Pool
Capistrano integration for `resque-pool`.
## Installation
Add this line to your application's Gemfile:
gem 'capistrano-resque-pool'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install capistrano-resque-pool
Finally, require it in your Capfile:
require 'capistrano-resque-pool'
## Configuration
You can setup the role or list of roles on which your run resque-pool.
```
# config/deploy.rb
set :resque_server_roles, :worker
# config/deploy/production.rb
server 'background.example.com', roles: [:worker]
```
By default it assumes that resque is located on servers with `app` role.
## Usage
Start all the workers and queus.
bundle exec cap production resque:pool:start
Gracefully shut down workers and shutdown the manager after all workers are done.
bundle exec cap production resque:pool:stop
Gracefully shut down workers and immediately shutdown manager.
bundle exec cap production resque:pool:stop_immediately
Reload the config file, reload logfiles, restart all workers.
bundle exec cap production resque:pool:restart
Gracefully shut down workers, Gracefully shut down manager, start a new manager and it's workers
bundle exec cap production resque:pool:full_restart
Leave the old pool running and start a new pool, Shut down other pools after the workers have started for the new pool
bundle exec cap production resque:pool:hot_swap
## Contributing
1. Fork it ( https://github.com/[my-github-username]/capistrano-resque-pool/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request