Module: Resque::Integration::Priority::Overrides

Defined in:
lib/resque/integration/priority.rb

Instance Method Summary collapse

Instance Method Details

#dequeue(priority, *args) ⇒ Object

Public: dequeue job with priority

Example:

MyJob.dequeue(:high, 1)


53
54
55
56
57
58
59
# File 'lib/resque/integration/priority.rb', line 53

def dequeue(priority, *args)
  if unique?
    super(*args, priority)
  else
    Resque.dequeue(self, *args, priority)
  end
end

#enqueue(*args) ⇒ Object

Public: enqueue job with normal priority

Example:

MyJob.enqueue(1)


45
46
47
# File 'lib/resque/integration/priority.rb', line 45

def enqueue(*args)
  enqueue_with_priority(:normal, *args)
end

#perform(*args, _priority) ⇒ Object



61
62
63
# File 'lib/resque/integration/priority.rb', line 61

def perform(*args, _priority)
  super(*args)
end