Skip to content

Releases: inkstak/activejob-status

1.1.0.beta.1

18 Apr 16:54
Compare
Choose a tag to compare
1.1.0.beta.1 Pre-release
Pre-release

Changes :

See README.

1.0.2

18 Apr 16:35
Compare
Choose a tag to compare

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

12 Jan 10:18
Compare
Choose a tag to compare

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

03 Mar 11:16
6d67948
Compare
Choose a tag to compare

Breaking changes

This version drops support of EOL versions of ActiveJob & ActiveSupport.

Supported versions dropped:

  • Rails 5.x

The gem currently supports:

  • Ruby 2.7 to 3.2
  • Rails 6.0 to 7.0

If you're still using an older version of Rails, see v0.5.0.

0.5.0

03 Mar 11:14
Compare
Choose a tag to compare

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

30 Jan 16:08
Compare
Choose a tag to compare
  • Fix error message to saved into status - 3fca9bae
  • Fix and update Github actions

0.4.0

16 Dec 12:04
Compare
Choose a tag to compare
  • Fix an issue where progress couldn't be updated from outside the job #22
  • Prevent exceptions when using internal (but public) methods from outside the job
  • Update CI

0.3.0

02 Nov 08:44
Compare
Choose a tag to compare
  • 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

22 Sep 07:35
Compare
Choose a tag to compare
  • 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

0.2.1

19 Sep 17:56
Compare
Choose a tag to compare
  • Arguments fixed in Ruby 3.x
  • Allow to pass options to store=