good_job 2.17.0 → 2.17.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 92c29f2bed6e36f449e880b5433c089351c63d1365cdc094b774122202407fb3
4
- data.tar.gz: 4125a6cfb9e3c0d3de88bd8cdfb64acb450f8c6072fc2aa6a0907f9b51083add
3
+ metadata.gz: 869350074426db7d14fdf229402edf5f86be6eccb0403c160f464e36844586dd
4
+ data.tar.gz: 972188f8afb342c260b3c5417988ece4a0d2a42dfcaf42da18b72a8a472f24a4
5
5
  SHA512:
6
- metadata.gz: cd6b4fbce879de227852b9399bbb65739933b50732dfc5be5a3563162c55375d1d366d4796bf163c4d12683a7f03668ef7a80d73e229343debe622c7e7ccd2b1
7
- data.tar.gz: 5f4fac41e04a0844b93cc482e24b910e599ccabf411ac6841e7519cb6d573a6d7bb82070f6a35ffc40a1937256f910e9e6995cc5a9090e779c9b2eac33a8d901
6
+ metadata.gz: e25f2531c4e6310304e3152a9e93291f0daa158ae78c2937a59d0a680abe705ba063b510cc1680cf1c856f45112789365fed8ddf9d15cf46eabb62afd5c9770d
7
+ data.tar.gz: d35c3de5c5bdb857af39e17376500792e017ba66dea78ab0da21c37635cf37ea1af1af36af3d6dd0bd19328d2a8fea0ff01765d841fce9c3b5ed1b9b8090a74f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## [v2.17.1](https://github.com/bensheldon/good_job/tree/v2.17.1) (2022-06-24)
4
+
5
+ [Full Changelog](https://github.com/bensheldon/good_job/compare/v2.17.0...v2.17.1)
6
+
7
+ **Fixed bugs:**
8
+
9
+ - Move models out of `app` into `lib/models` [\#635](https://github.com/bensheldon/good_job/pull/635) ([bensheldon](https://github.com/bensheldon))
10
+
11
+ **Closed issues:**
12
+
13
+ - dashboard "delete all" does not work [\#630](https://github.com/bensheldon/good_job/issues/630)
14
+ - Concurrency controlled jobs cause infinite loops when perform\_limit is exceeded in test environments [\#609](https://github.com/bensheldon/good_job/issues/609)
15
+
16
+ **Merged pull requests:**
17
+
18
+ - Better isolate test environment: run server integration tests on port 3009 with custom pidfile; scope advisory lock counts to test database [\#632](https://github.com/bensheldon/good_job/pull/632) ([bensheldon](https://github.com/bensheldon))
19
+
3
20
  ## [v2.17.0](https://github.com/bensheldon/good_job/tree/v2.17.0) (2022-06-23)
4
21
 
5
22
  [Full Changelog](https://github.com/bensheldon/good_job/compare/v2.16.1...v2.17.0)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  module GoodJob
3
3
  # GoodJob gem version.
4
- VERSION = '2.17.0'
4
+ VERSION = '2.17.1'
5
5
  end
data/lib/good_job.rb CHANGED
@@ -8,6 +8,7 @@ Zeitwerk::Loader.for_gem(**zeitwerk_options).tap do |loader|
8
8
  loader.inflector.inflect({
9
9
  "cli" => "CLI",
10
10
  })
11
+ loader.push_dir("#{__dir__}/models")
11
12
  loader.ignore("#{__dir__}/generators")
12
13
  loader.setup
13
14
  end
@@ -26,7 +26,7 @@ module GoodJob
26
26
  self.primary_key = 'active_job_id'
27
27
  self.advisory_lockable_column = 'active_job_id'
28
28
 
29
- has_many :executions, -> { order(created_at: :asc) }, class_name: 'GoodJob::Execution', foreign_key: 'active_job_id', inverse_of: :job # rubocop:disable Rails/HasManyOrHasOneDependent
29
+ has_many :executions, -> { order(created_at: :asc) }, class_name: 'GoodJob::Execution', foreign_key: 'active_job_id', inverse_of: :job
30
30
 
31
31
  # Only the most-recent unretried execution represents a "Job"
32
32
  default_scope { where(retried_good_job_id: nil) }
File without changes
File without changes
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: good_job
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.17.0
4
+ version: 2.17.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Sheldon
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-06-23 00:00:00.000000000 Z
11
+ date: 2022-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activejob
@@ -382,9 +382,6 @@ files:
382
382
  - app/filters/good_job/base_filter.rb
383
383
  - app/filters/good_job/jobs_filter.rb
384
384
  - app/helpers/good_job/application_helper.rb
385
- - app/models/good_job/active_job_job.rb
386
- - app/models/good_job/execution.rb
387
- - app/models/good_job/process.rb
388
385
  - app/views/good_job/cron_entries/index.html.erb
389
386
  - app/views/good_job/cron_entries/show.html.erb
390
387
  - app/views/good_job/jobs/_executions.erb
@@ -427,7 +424,6 @@ files:
427
424
  - lib/good_job/active_job_extensions/concurrency.rb
428
425
  - lib/good_job/adapter.rb
429
426
  - lib/good_job/assignable_connection.rb
430
- - lib/good_job/base_record.rb
431
427
  - lib/good_job/cleanup_tracker.rb
432
428
  - lib/good_job/cli.rb
433
429
  - lib/good_job/configuration.rb
@@ -450,6 +446,10 @@ files:
450
446
  - lib/good_job/probe_server.rb
451
447
  - lib/good_job/scheduler.rb
452
448
  - lib/good_job/version.rb
449
+ - lib/models/good_job/active_job_job.rb
450
+ - lib/models/good_job/base_record.rb
451
+ - lib/models/good_job/execution.rb
452
+ - lib/models/good_job/process.rb
453
453
  homepage: https://github.com/bensheldon/good_job
454
454
  licenses:
455
455
  - MIT