Sha256: b3cac0d7a7fef987c26589715041b6daafdc3342eae37670c80ca42556dff907

Contents?: true

Size: 646 Bytes

Versions: 5

Compression:

Stored size: 646 Bytes

Contents

# encoding: utf-8

##
# Load in the official Resque rake tasks
require 'resque/tasks'

##
# Overwrite the resque:setup rake task to first load
# in the application environment before proceeding
#
# ENV['QUEUE'] will default to '*' unless it's defined
# as an environment variable on Heroku or the Local machine
task 'resque:setup' => :environment do
  ENV['QUEUE'] ||= '*'
end

##
# This is an alias to the "resque:work" task since Heroku doesn't respond
# to "resque:work", we need to add this alias so Resque can be initialized by Heroku
desc 'Alias of "resque:work" - This is required for running on Heroku.'
task 'jobs:work' => 'resque:work'

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
hirefire-0.1.4 lib/hirefire/workers/resque/tasks.rb
hirefire-0.1.3 lib/hirefire/workers/resque/tasks.rb
hirefire-0.1.2 lib/hirefire/workers/resque/tasks.rb
samoli-hirefire-0.1.1 lib/hirefire/workers/resque/tasks.rb
hirefire-0.1.1 lib/hirefire/workers/resque/tasks.rb