class Sidekiq::Work
Sidekiq::Work
represents a job which is currently executing.
Attributes
Public Class Methods
Source
# File lib/sidekiq/api.rb, line 1242 def initialize(pid, tid, hsh) @process_id = pid @thread_id = tid @hsh = hsh @job = nil end
Public Instance Methods
Source
# File lib/sidekiq/api.rb, line 1257 def job @job ||= Sidekiq::JobRecord.new(@hsh["payload"]) end