Class: QC::Queue

Inherits:
Object
  • Object
show all
Defined in:
lib/qc-additions/queue.rb

Instance Method Summary collapse

Instance Method Details

#enqueue_if_not_queued(method, *args) ⇒ Object



4
5
6
# File 'lib/qc-additions/queue.rb', line 4

def enqueue_if_not_queued(method, *args)
  enqueue(method, *args) unless job_exists?(method, *args)
end

#job_count(method, *args) ⇒ Object



8
9
10
# File 'lib/qc-additions/queue.rb', line 8

def job_count(method, *args)
  Queries.job_count(name, method, args)
end

#job_exists?(method, *args) ⇒ Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/qc-additions/queue.rb', line 12

def job_exists?(method, *args)
  Queries.job_exists?(name, method, args)
end