A Resque plugin. If you want only one instance of your job running at a time, extend it with this module. For example: class UpdateNetworkGraph extend Resque::Jobs::Locked def self.perform(repo_id) heavy_lifting end end
Chris Wanstrath
gem "resque-lock", "~> 0.1.0"