good_job 1.13.0 → 1.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/good_job/active_job_extensions/concurrency.rb +6 -0
- data/lib/good_job/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 945c5a01f5e0e936bbd863ce9cdcd8ca3956d1b0e8462932821ca3d502fc255f
|
4
|
+
data.tar.gz: e0503d0b3c89d43fd7a03be68f34f578100baf9b0ad01f1a7e40a6833c35a929
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16326be1563033a3f94d64fa926a85d58cf9ec5026f1aed1fc1471d0b7e301c0e7f69101129964d91ca7cfafd51146fba71c5b7f2ce8643d152590ce8e826a05
|
7
|
+
data.tar.gz: ffdd7c4274c04a14d44af48d0f590fa10b984787e88e00359584911521c406451209ccd0525875ab80646bb7a9ea16fc062159b3a1513231106c7d0eb1a2e23a
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [v1.13.1](https://github.com/bensheldon/good_job/tree/v1.13.1) (2021-08-18)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/bensheldon/good_job/compare/v1.13.0...v1.13.1)
|
6
|
+
|
7
|
+
**Fixed bugs:**
|
8
|
+
|
9
|
+
- Don’t attempt to enforce concurrency limits with other queue adapters [\#333](https://github.com/bensheldon/good_job/pull/333) ([codyrobbins](https://github.com/codyrobbins))
|
10
|
+
|
3
11
|
## [v1.13.0](https://github.com/bensheldon/good_job/tree/v1.13.0) (2021-08-18)
|
4
12
|
|
5
13
|
[Full Changelog](https://github.com/bensheldon/good_job/compare/v1.12.2...v1.13.0)
|
@@ -10,6 +10,9 @@ module GoodJob
|
|
10
10
|
class_attribute :good_job_concurrency_config, instance_accessor: false, default: {}
|
11
11
|
|
12
12
|
around_enqueue do |job, block|
|
13
|
+
# Don't attempt to enforce concurrency limits with other queue adapters.
|
14
|
+
next(block.call) unless job.class.queue_adapter.is_a?(GoodJob::Adapter)
|
15
|
+
|
13
16
|
# Always allow jobs to be retried because the current job's execution will complete momentarily
|
14
17
|
next(block.call) if CurrentExecution.active_job_id == job.job_id
|
15
18
|
|
@@ -34,6 +37,9 @@ module GoodJob
|
|
34
37
|
)
|
35
38
|
|
36
39
|
before_perform do |job|
|
40
|
+
# Don't attempt to enforce concurrency limits with other queue adapters.
|
41
|
+
next unless job.class.queue_adapter.is_a?(GoodJob::Adapter)
|
42
|
+
|
37
43
|
limit = job.class.good_job_concurrency_config.fetch(:perform_limit, Float::INFINITY)
|
38
44
|
next if limit.blank? || (0...Float::INFINITY).exclude?(limit)
|
39
45
|
|
data/lib/good_job/version.rb
CHANGED