A simple monitoring status for ActiveJob
MIT License
Bot releases are hidden (Show)
Published by inkstak 6 months ago
The gem currently supports:
Dropped versions are removed from CI, but they may still work.
See Ruby EOL & Rails EOL for more information.
Published by inkstak 8 months ago
Published by inkstak 9 months ago
Update CI :
Published by inkstak over 1 year ago
This version drops support of EOL versions of ActiveJob & ActiveSupport.
If you're still using an older version of Rails, see v0.5.0.
Published by inkstak over 1 year ago
Fix #24: some features introduced after v0.2.2 depends on ActiveSupport >= 5.0
but the gemspec still required ActiveSupport >= 4.2
.
The next major release v1.0
will drop support of EOL versions of ActiveJob & ActiveSupport.
This release of v0.5
is still supporting ActiveSupport 5.x
but not 4.2
.
If you're still using an older version of Rails, you can suggest a pull request:
v0_5
and submit a PRPublished by inkstak almost 2 years ago
Published by inkstak almost 2 years ago
# 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" } }
Published by inkstak about 3 years ago
progess
is correctly synced when using .update()
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
Published by inkstak about 3 years ago
store=
Published by inkstak about 3 years ago
New features :
Breaking changes :
The non-public moduleActiveJob::Status::Storage
has been refactored to become a class.