Reporting Job Progress

Jobly comes bundled with Sidekiq::Status which that you get a live status dashboard, and a way to report progress in your jobs.

In order to report progress from your job, use the total and at methods. In addition, you can store arbitrary data related to your job with store and retrieve.

# jobs/hello.rb
class Hello < Jobly::Job
  def execute(name: 'bob')
    # How many steps this job has (default is 100)
    total 100 

    # 5/100 = 5% completion
    at 5, "Initializing"

    # Store arbitrary data
    store vino: 'veritas'

    # Retrieve data.
    # Remember that retrieved data is always String or nil
    vino = retrieve :vino