Skip to content

endel/resque-swapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

resque-swapper

Allows to configure and Resque servers to swap them on runtime.

Configuration

Create a config/resque.yml for your project, like this:

production:
  localhost:
    host: localhost
    port: 6379
  another:
    host: 192.168.1.5
    port: 6379
development:
  localhost:
    host: localhost
    port: 6379
  another:
    host: localhost
    port: 6380

How to use

Swaping temporarily:

require 'resque-swapper'
require 'resque-remote'

Resque.swap(:another) do |resque|
	resque.remote_enqueue('SomeJob', :queue, 'foo')
end

Direct swap:

require 'resque-swapper'

Resque.swap(:another)
Resque.enqueue(Something, 'foo')

License

resque-swapper is released under MIT License. Please see LICENSE file.

About

Swapping tool for Resque server on runtime.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages