async-job-adapter-active_job 0.16.0 → 0.16.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f9028d5ddf718de2229cf9ee46890e5a457b13a6d8dbaa25f2c900f6a54d50e3
4
- data.tar.gz: 9cb4bbfc5097aa6a9df7380e07355dc718dd1861c34471ae97dc90267801cf1f
3
+ metadata.gz: 6b0439b444fdb04d9faca56775cd19ba87604bf6912ab75899c96240faca8c0f
4
+ data.tar.gz: 56ef92c2681151ec12b4ac2f5cd0ead9531c32fc4a462449d336318c6fce8bed
5
5
  SHA512:
6
- metadata.gz: a1b1a5ffb596faa0b7e0d503375d8df9831d83b992f0dd0c0b1d2b79e6dcba2268be29d365c2ae665656abdadb1b33af5c160a045f94850f96e7af07224c9057
7
- data.tar.gz: 7acc485f3da39145c55d6aa15f49392ad24dddace96c2218d4fe96b6dacbe25827c0a9e67bd67c2294fdfe387c832809988e58eaad9ce8415c8effdf803c239a
6
+ metadata.gz: 94cae1b72d1ca8eb76fa234d8bc25046f0e4919fabf8d122a0b84d10d6bfdd34ad78fcd8cd1841d2fa8d867c1989a98c904fe6e9cc394e3b198dfd713e42fed6
7
+ data.tar.gz: 6327f5537307912accffee85fa2ed686729dc30feffdedb8749a8d0f0749a42b03a2e2c391fb2532873e0428a2e6be7ea3f4a81312763a00d8bfb7ab8654b08d
checksums.yaml.gz.sig CHANGED
@@ -1 +1,2 @@
1
- jU n뒋_I���o�Q�{!�pXUSk��j�%�j��<����M3����P�� ֯9�E�戮f*��P-q&a|S�ܶ
1
+ �<���r͛�[�1h�4���]'cX��莟л�|�-� ��Q�%P��Ui�|��.�Wh;�y���91��� ����D��gGd���ų�A���>�����ϴ|];U�P��f��\��p�<W���-��>��ѩ�
2
+ �i(��))�;2e��� �����=��\�rԽ��P�c�g�ضd�8���8�������@��|`xܐ
@@ -37,6 +37,12 @@ module Async
37
37
  end
38
38
  end
39
39
 
40
+ # Number of instances to start. By default (when nil), uses `Etc.nprocessors`.
41
+ # @returns [Integer | nil]
42
+ def count
43
+ nil
44
+ end
45
+
40
46
  # Options to use when creating the container.
41
47
  def container_options
42
48
  {
@@ -56,6 +56,11 @@ module Async
56
56
  def keys
57
57
  @definitions.keys
58
58
  end
59
+
60
+ # Get the status string for the dispatcher, useful for process titles.
61
+ def status_string
62
+ dispatcher.status_string
63
+ end
59
64
  end
60
65
  end
61
66
  end
@@ -7,7 +7,7 @@ module Async
7
7
  module Job
8
8
  module Adapter
9
9
  module ActiveJob
10
- VERSION = "0.16.0"
10
+ VERSION = "0.16.2"
11
11
  end
12
12
  end
13
13
  end
data/readme.md CHANGED
@@ -14,6 +14,14 @@ Please see the [project documentation](https://socketry.github.io/async-job-adap
14
14
 
15
15
  Please see the [project releases](https://socketry.github.io/async-job-adapter-active_job/releases/index) for all releases.
16
16
 
17
+ ### v0.16.2
18
+
19
+ - Add default count (nil = process count).
20
+
21
+ ### v0.16.1
22
+
23
+ - Fixed `ThreadLocalDispatcher` to correctly handle `status_string`.
24
+
17
25
  ### v0.16.0
18
26
 
19
27
  - Add container options for controlling number of workers and health check timeout.
@@ -56,14 +64,6 @@ Please see the [project releases](https://socketry.github.io/async-job-adapter-a
56
64
 
57
65
  - Prefer `define_queue` and `alias_queue` methods for queue configuration.
58
66
 
59
- ### v0.10.0
60
-
61
- - Rename "pipeline" concept to "queue" for consistency.
62
-
63
- ### v0.9.0
64
-
65
- - Update interface to suit upstream async-job changes.
66
-
67
67
  ## Contributing
68
68
 
69
69
  We welcome contributions to this project.
data/releases.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Releases
2
2
 
3
+ ## v0.16.2
4
+
5
+ - Add default count (nil = process count).
6
+
7
+ ## v0.16.1
8
+
9
+ - Fixed `ThreadLocalDispatcher` to correctly handle `status_string`.
10
+
3
11
  ## v0.16.0
4
12
 
5
13
  - Add container options for controlling number of workers and health check timeout.
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-job-adapter-active_job
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.16.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file