module Sidekiq::Result

An extension to Sidekiq message processing to track your job results.

Constants

DEFAULT_EXPIRATION
VERSION

Public Class Methods

complete?(id) click to toggle source

Check if job has registered complete by storing key in it’s space

# File lib/sidekiq_result.rb, line 15
def complete? id
  !check_for_key(id).empty?
end
result(id) click to toggle source

The result from the Sidekiq worker Returns whatever was returned from the Sidekiq job @param [String] id the id of the Sidekiq job

# File lib/sidekiq_result.rb, line 22
def result(id)
  get_object_for_id(id)
end