Releases: inkstak/activejob-status
Releases · inkstak/activejob-status
1.1.0.beta.1
1.0.2
Changes
- Avoid one extra call to cache when reading progress
Dependencies support
- Fix Ruby 3.4 support
Supported versions dropped:
- Ruby 3.0 dropped
- Rails 6.0 dropped
The gem currently supports:
- Ruby 3.1 to 3.4dev
- Rails 6.1 to 7.1
Dropped versions are removed from CI, but they may still work.
See Ruby EOL & Rails EOL for more information.
1.0.1
Changes
- Update CI
Dependencies support
- Add Ruby 3.3 support
- Add Ruby 3.4.dev support
- Add Rails 7.1 support
Supported versions dropped:
- Ruby 2.7 dropped
The gem currently supports:
- Ruby 3.0 to 3.4dev
- Rails 6.0 to 7.1
Dropped versions are removed from CI, but they may still work.
See Ruby EOL & Rails EOL for more information.
1.0.0
0.5.0
Changes
Update dependencies to fix #24:
some features introduced after 0.2.2
depended on ActiveSupport >= 5.0
but the gemspec still required ActiveSupport >= 4.2
.
Dependencies support
The next major release (1.0
) will drop support of EOL versions of ActiveJob & ActiveSupport.
This version 0.5
is still supporting ActiveSupport 5.x
but not ActiveSupport 4.2
.
If you need to use an older version of Rails, you can suggest a pull request:
- fork the branch
v0_5
- fix the test suite : it has been setup to run with Appraisal but it's currently broken
- submit a PR
- no feature request will be accepted.
0.4.1
0.4.0
0.3.0
- Add job information to status - #18 thanks to @ghaydarov
You can update you default config to get more informations about the job and the raised exception.
# config/initializers/activejob_status.rb
# Select what data you want to store.
# Available options are: :status, :serialized_job, :exception
# Default is [:status]
#
ActiveJob::Status.options = { includes: %i[status serialized_job exception] }
status = ActiveJob::Status.get(job)
# => { status: :queued, serialized_job: { "arguments" => [], "job_class" => "BaseJob", "job_id" => "d11b64e6-8631-4118-ae76-e19376769171", ... }
status = ActiveJob::Status.get(job)
# => { status: :failed, exception: { class: "NoMethodError", message:"Something went wrong" } }
- Few refactoring, updates CI, add code coverage.
0.2.2
- 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