good_job 2.14.3 → 2.14.4

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: f53ed707cdafa1bedf790afd1465aefd1453bb7f7a1d358a577ee4769743d94a
4
- data.tar.gz: 77274ebd06c82c4caec8369f6cf9eaeafd90c70960ed2722314cdd773c08a02b
3
+ metadata.gz: 34be72b94928721447a6409e5a63aea86bc371ddcdcfa4c30316ee28dfefe59f
4
+ data.tar.gz: 4ca6c70f5456cb79440577c4493f17662930e7e2a259d8077248beb2e7742406
5
5
  SHA512:
6
- metadata.gz: 83283b1fbd4983b9a7814cf5f67dad4c78df64d046db45c95f1f6aa8f118f1a1cb0e522b32bb8e5f38e8e0a52ec2408da209abc03a041fd9f665015d2c8b854f
7
- data.tar.gz: 98091d7a44f02ddfad810af0195dab7c8c581475b8d049b570d28c86921363c6fafa8ab6fcc4221dc5efa662fae3918e5f98579f45f847ee82ba3d97e44a5b8c
6
+ metadata.gz: 2e0d5ba7b3c0f1adee5491633292424e3e99dd8a27d4f1d3d324f6e1701c68b51042bd11ace9982b3f4c084e1f1b8a84e81d9a2642e02a5a1da4f4187883e69b
7
+ data.tar.gz: b22e9d91946eba8363c6c87ceb62d2cbd4e6fd29438eefd17686c42c4ef81c46e1590631326e1e0b4b376d27464ef4bf9bf3fb2573df1fd741fa6a7a0a749810
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [v2.14.4](https://github.com/bensheldon/good_job/tree/v2.14.4) (2022-05-15)
4
+
5
+ [Full Changelog](https://github.com/bensheldon/good_job/compare/v2.14.3...v2.14.4)
6
+
7
+ **Fixed bugs:**
8
+
9
+ - Fix Concurrency extension to not break `perform_now` [\#593](https://github.com/bensheldon/good_job/pull/593) ([bensheldon](https://github.com/bensheldon))
10
+
3
11
  ## [v2.14.3](https://github.com/bensheldon/good_job/tree/v2.14.3) (2022-05-13)
4
12
 
5
13
  [Full Changelog](https://github.com/bensheldon/good_job/compare/v2.14.2...v2.14.3)
data/README.md CHANGED
@@ -1032,7 +1032,7 @@ $ gem signin
1032
1032
  # CHANGELOG_GITHUB_TOKEN= # Github Personal Access Token
1033
1033
 
1034
1034
  # Update version number, changelog, and create git commit:
1035
- $ bundle exec rake release[minor] # major,minor,patch
1035
+ $ bundle exec rake release_good_job[minor] # major,minor,patch
1036
1036
 
1037
1037
  # ..and follow subsequent directions.
1038
1038
  ```
@@ -61,6 +61,11 @@ module GoodJob
61
61
  key = job.good_job_concurrency_key
62
62
  next if key.blank?
63
63
 
64
+ if CurrentThread.execution.blank?
65
+ logger.debug("Ignoring concurrency limits because the job is executed with `perform_now`.")
66
+ next
67
+ end
68
+
64
69
  GoodJob::Execution.advisory_lock_key(key, function: "pg_advisory_lock") do
65
70
  allowed_active_job_ids = GoodJob::Execution.unfinished.where(concurrency_key: key).advisory_locked.order(Arel.sql("COALESCE(performed_at, scheduled_at, created_at) ASC")).limit(perform_limit).pluck(:active_job_id)
66
71
  # The current job has already been locked and will appear in the previous query
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  module GoodJob
3
3
  # GoodJob gem version.
4
- VERSION = '2.14.3'
4
+ VERSION = '2.14.4'
5
5
  end
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.14.3
4
+ version: 2.14.4
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-05-13 00:00:00.000000000 Z
11
+ date: 2022-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activejob