maintenance_tasks 2.10.0 → 2.10.1

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: 347d742ae5f71881fe2d54f7fff83b4129144eb72af60c2364a8069fc41412fe
4
- data.tar.gz: 20ff959d1c2db4a003883955ef938414a462f16fa843d8f4ec526ff3333a0609
3
+ metadata.gz: 4b660fdfcef27420bf9b08ddc50c9cfac5ff0977c4435b54ecd2b468a3e4fde8
4
+ data.tar.gz: 30bac0da63839406dc623d07c85904b7a727d3af5c177736cbd72ea828ca41c9
5
5
  SHA512:
6
- metadata.gz: 7f9e56bd030e2a6918d7e8e136108d6097cbcdaa8b73ebb9683072878f8789cb0b7da1b67c122d7dddf97553ca3dcb37b4e1af7670cbdf931825ec965cbbf9af
7
- data.tar.gz: 384ec37a77b25d689ff46f965fd6cddd4ddc7669f520a99db808edc76c290c21ed8925b5d791839dd0d61738da6b944267fa65535b91ebd4ee6d8913293bb824
6
+ metadata.gz: 071dafa23a89bd949e40f10ef199ae892d5ae81ca2ad1e15e6c7de0260dafbd55f735d67c310f5de7ef499991982eb3bad69fce4024f8f8761e4357ac3fdc42b
7
+ data.tar.gz: 77265626bdeafaa6486a3843846d519168be0712399ebe3cd7a4ecbb42f5888f208f566346d6d628643ee0dcf06ff1c4b914f2ab3ef9ec73f60b9444ef3f05c0
@@ -33,6 +33,7 @@ module MaintenanceTasks
33
33
  def build_enumerator(_run, cursor:)
34
34
  cursor ||= @run.cursor
35
35
  self.cursor_position = cursor
36
+ enumerator_builder = self.enumerator_builder
36
37
  @collection_enum = @task.enumerator_builder(cursor: cursor)
37
38
 
38
39
  @collection_enum ||= case (collection = @task.collection)
@@ -75,6 +76,9 @@ module MaintenanceTasks
75
76
  MSG
76
77
  end
77
78
 
79
+ unless @collection_enum.is_a?(JobIteration.enumerator_builder::Wrapper)
80
+ @collection_enum = enumerator_builder.wrap(enumerator_builder, @collection_enum)
81
+ end
78
82
  throttle_enumerator(@collection_enum)
79
83
  end
80
84
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maintenance_tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.10.0
4
+ version: 2.10.1
5
5
  platform: ruby
6
+ original_platform: ''
6
7
  authors:
7
8
  - Shopify Engineering
8
- autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-12-03 00:00:00.000000000 Z
11
+ date: 2024-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack
@@ -108,7 +108,6 @@ dependencies:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: 2.6.2
111
- description:
112
111
  email: gems@shopify.com
113
112
  executables:
114
113
  - maintenance_tasks
@@ -185,9 +184,8 @@ homepage: https://github.com/Shopify/maintenance_tasks
185
184
  licenses:
186
185
  - MIT
187
186
  metadata:
188
- source_code_uri: https://github.com/Shopify/maintenance_tasks/tree/v2.10.0
187
+ source_code_uri: https://github.com/Shopify/maintenance_tasks/tree/v2.10.1
189
188
  allowed_push_host: https://rubygems.org
190
- post_install_message:
191
189
  rdoc_options: []
192
190
  require_paths:
193
191
  - lib
@@ -202,8 +200,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
202
200
  - !ruby/object:Gem::Version
203
201
  version: '0'
204
202
  requirements: []
205
- rubygems_version: 3.5.23
206
- signing_key:
203
+ rubygems_version: 3.6.1
207
204
  specification_version: 4
208
205
  summary: A Rails engine for queuing and managing maintenance tasks
209
206
  test_files: []