Class: Rjob::Worker

Inherits:
Object
  • Object
show all
Defined in:
lib/rjob/worker.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(context, job) ⇒ Worker

Returns a new instance of Worker.



7
8
9
10
# File 'lib/rjob/worker.rb', line 7

def initialize(context, job)
  @context = context
  @job = job
end

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



4
5
6
# File 'lib/rjob/worker.rb', line 4

def context
  @context
end

#jobObject (readonly)

Returns the value of attribute job.



5
6
7
# File 'lib/rjob/worker.rb', line 5

def job
  @job
end

Class Method Details

.retry_optionsObject



12
13
14
15
16
# File 'lib/rjob/worker.rb', line 12

def self.retry_options
  {
    retry: false
  }
end