A plugin that allows enqueuing a job at the front of a queue!
Normally, you'd want to place jobs into queues at the end, for fairness.
But occasionally, you get a Very Important Job that needs to jump to the front of the line, so this allows for that.
This was developed and tested on Resque 1.21.
Add this line to your application's Gemfile:
gem 'resque-priority_enqueue'
And then execute:
$ bundle
Or install it yourself as:
$ gem install resque-priority_enqueue
Instead of the standard:
Resque.enqueue ....Use:
Resque.priority_enqueue ....And the job will be pushed at the front of the line.
- Fork it ( https://github.com/[my-github-username]/resque-priority_enqueue/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request