module Sidekiq::Worker
Provides access to update_status
in classes that include Sidekiq::Worker
Public Instance Methods
update_status(**updates)
click to toggle source
@example Update a batch's status
class MyWorker include Sidekiq::Worker def max; 100; end def perform(*) update_status(value: 100, more: 'info') end end
@param [Hash] updates The changes to be persisted to the
{TrackableBatch}'s current status
@option updates [Numeric] :value Amount to increment the
current value by.
@option updates [String] * Any other key and value updates. (optional)
# File lib/sidekiq/overrides/worker.rb, line 25 def update_status(**updates) _update_status(batch, **updates) end
Also aliased as: _update_status