good_job 1.13.1 → 1.13.2
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/adapter.rb +1 -1
- data/lib/good_job/configuration.rb +13 -2
- 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: ef04aa133c3e3f39b4e5967f61441617808d51a8d13b79e9f4e61a89c3da0c63
|
4
|
+
data.tar.gz: a5abe5ff64d1c7abb197b78f0aa7812834b9034fb0340dbb8abb6d2a42912af9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6effeb75fd0d5a0541f4be984e6a0931fba2d6849b1d5061941276b5ee977b3620ce13b2328b64fdd27b1d66ab1753087aed612d7c301b7a100fc709a3740697
|
7
|
+
data.tar.gz: 4694a54a3f1dffd84e4875fc7169e49f6edff3baa92fc458720939738b3db6b6f907883601c480fd4aa1d64549b7a1a0352b3c2481df1ae67057685efa9414a6
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [v1.13.2](https://github.com/bensheldon/good_job/tree/v1.13.2) (2021-08-18)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/bensheldon/good_job/compare/v1.13.1...v1.13.2)
|
6
|
+
|
7
|
+
**Merged pull requests:**
|
8
|
+
|
9
|
+
- Add deprecation notice that `async` mode will be renamed `async_all` in GoodJob v2.0 [\#339](https://github.com/bensheldon/good_job/pull/339) ([bensheldon](https://github.com/bensheldon))
|
10
|
+
|
3
11
|
## [v1.13.1](https://github.com/bensheldon/good_job/tree/v1.13.1) (2021-08-18)
|
4
12
|
|
5
13
|
[Full Changelog](https://github.com/bensheldon/good_job/compare/v1.13.0...v1.13.1)
|
data/lib/good_job/adapter.rb
CHANGED
@@ -130,7 +130,7 @@ module GoodJob
|
|
130
130
|
# Whether in +:async+ execution mode.
|
131
131
|
# @return [Boolean]
|
132
132
|
def execute_async?
|
133
|
-
@configuration.execution_mode
|
133
|
+
@configuration.execution_mode.in?([:async, :async_all]) ||
|
134
134
|
@configuration.execution_mode == :async_server && in_server_process?
|
135
135
|
end
|
136
136
|
|
@@ -7,7 +7,7 @@ module GoodJob
|
|
7
7
|
#
|
8
8
|
class Configuration
|
9
9
|
# Valid execution modes.
|
10
|
-
EXECUTION_MODES = [:async, :async_server, :external, :inline].freeze
|
10
|
+
EXECUTION_MODES = [:async, :async_all, :async_server, :external, :inline].freeze
|
11
11
|
# Default number of threads to use per {Scheduler}
|
12
12
|
DEFAULT_MAX_THREADS = 5
|
13
13
|
# Default number of seconds between polls for jobs
|
@@ -58,7 +58,18 @@ module GoodJob
|
|
58
58
|
end
|
59
59
|
|
60
60
|
if mode
|
61
|
-
mode.to_sym
|
61
|
+
mode_sym = mode.to_sym
|
62
|
+
if mode_sym == :async
|
63
|
+
ActiveSupport::Deprecation.warn <<~DEPRECATION
|
64
|
+
The next major version of GoodJob will redefine the meaning of 'async'
|
65
|
+
execution mode to be equivalent to 'async_server' and only execute
|
66
|
+
within the webserver process.
|
67
|
+
|
68
|
+
To continue using the v1.0 semantics of 'async', use `async_all` instead.
|
69
|
+
|
70
|
+
DEPRECATION
|
71
|
+
end
|
72
|
+
mode_sym
|
62
73
|
elsif Rails.env.development? || Rails.env.test?
|
63
74
|
:inline
|
64
75
|
else
|
data/lib/good_job/version.rb
CHANGED