Skip to content

0.2.2

Compare
Choose a tag to compare
@inkstak inkstak released this 22 Sep 07:35
· 51 commits to main since this release
  • Add tests - #15 thanks to @ahorek
  • Default status are correctly updated when using throttling mechanism - #16 thanks to @jeanne-b-
  • progess is correctly synced when using .update()
    This is especially usefull to perform less cache writes
class MyJob < ActiveJob::Base
  include ActiveJob::Status

  def perform
    status.update(step: "B", total: 50, progress: 10)

    # `progress.total` is now set to 50
    # and `progress.progress` to 10
  end
end