Module: SidekiqTamer::Resource::ResourceDependencies

Included in:
Mongo::ServerOperation
Defined in:
lib/sidekiq_tamer/resource/resource_dependencies.rb

Instance Method Summary collapse

Instance Method Details

#add_job(job) ⇒ Object



7
8
9
# File 'lib/sidekiq_tamer/resource/resource_dependencies.rb', line 7

def add_job(job)
  jobs.add(job)
end

#is_consumed_by?(job) ⇒ Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/sidekiq_tamer/resource/resource_dependencies.rb', line 11

def is_consumed_by?(job)
  jobs.include?(job)
end

#jobsObject



3
4
5
# File 'lib/sidekiq_tamer/resource/resource_dependencies.rb', line 3

def jobs
  @jobs ||= Set.new()
end