good_job 1.13.1 → 1.13.2

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: 945c5a01f5e0e936bbd863ce9cdcd8ca3956d1b0e8462932821ca3d502fc255f
4
- data.tar.gz: e0503d0b3c89d43fd7a03be68f34f578100baf9b0ad01f1a7e40a6833c35a929
3
+ metadata.gz: ef04aa133c3e3f39b4e5967f61441617808d51a8d13b79e9f4e61a89c3da0c63
4
+ data.tar.gz: a5abe5ff64d1c7abb197b78f0aa7812834b9034fb0340dbb8abb6d2a42912af9
5
5
  SHA512:
6
- metadata.gz: 16326be1563033a3f94d64fa926a85d58cf9ec5026f1aed1fc1471d0b7e301c0e7f69101129964d91ca7cfafd51146fba71c5b7f2ce8643d152590ce8e826a05
7
- data.tar.gz: ffdd7c4274c04a14d44af48d0f590fa10b984787e88e00359584911521c406451209ccd0525875ab80646bb7a9ea16fc062159b3a1513231106c7d0eb1a2e23a
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)
@@ -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 == :async ||
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  module GoodJob
3
3
  # GoodJob gem version.
4
- VERSION = '1.13.1'
4
+ VERSION = '1.13.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: good_job
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.13.1
4
+ version: 1.13.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Sheldon