maintenance_tasks 2.7.0 → 2.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -2
- data/app/jobs/concerns/maintenance_tasks/task_job_concern.rb +1 -0
- data/app/models/maintenance_tasks/task.rb +1 -0
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dac65eae0e9b5f8066a994408059eb42689792fed29f36321632ff42a804a7cd
|
4
|
+
data.tar.gz: a8df371985f28c8d97a2e8363f263e93fa40c2291370c63da8bfa115bad0e21a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5144b9f8ab67ae9ea05b16c74178a96239cf22611627822e6ca00205c145e1767bc51015f796fd95dd40b973f3e5b6b1e1e67a950c72c628995602c631e0e49a
|
7
|
+
data.tar.gz: caeefe52b00431e3ba41297cc10f3dfb17c184b57237e74e6825f50b683be58431c079bf4921ac2529286a0b926fdbbe2ee6e61dc4350e3457d477ce18dc1ba1
|
data/README.md
CHANGED
@@ -497,7 +497,10 @@ end
|
|
497
497
|
|
498
498
|
### Subscribing to instrumentation events
|
499
499
|
|
500
|
-
If you are interested in actioning a specific task event, please refer to the
|
500
|
+
If you are interested in actioning a specific task event, please refer to the
|
501
|
+
[Using Task Callbacks](#using-task-callbacks) section below. However, if you
|
502
|
+
want to subscribe to all events, irrespective of the task, you can use the
|
503
|
+
following Active Support notifications:
|
501
504
|
|
502
505
|
```ruby
|
503
506
|
enqueued.maintenance_tasks # This event is published when a task has been enqueued by the user.
|
@@ -507,7 +510,8 @@ paused.maintenance_tasks # This event is published when a task is paused by
|
|
507
510
|
errored.maintenance_tasks # This event is published when the task's code produces an unhandled exception.
|
508
511
|
```
|
509
512
|
|
510
|
-
These notifications offer a way to monitor the lifecycle of maintenance tasks in
|
513
|
+
These notifications offer a way to monitor the lifecycle of maintenance tasks in
|
514
|
+
your application.
|
511
515
|
|
512
516
|
Usage example:
|
513
517
|
|
@@ -79,6 +79,7 @@ module MaintenanceTasks
|
|
79
79
|
end
|
80
80
|
|
81
81
|
csv_options[:headers] = true unless csv_options.key?(:headers)
|
82
|
+
csv_options[:encoding] ||= Encoding.default_external
|
82
83
|
self.collection_builder_strategy = if in_batches
|
83
84
|
BatchCsvCollectionBuilder.new(in_batches, **csv_options)
|
84
85
|
else
|
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.7.
|
4
|
+
version: 2.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shopify Engineering
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '6.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: csv
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: job-iteration
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -171,7 +185,7 @@ homepage: https://github.com/Shopify/maintenance_tasks
|
|
171
185
|
licenses:
|
172
186
|
- MIT
|
173
187
|
metadata:
|
174
|
-
source_code_uri: https://github.com/Shopify/maintenance_tasks/tree/v2.7.
|
188
|
+
source_code_uri: https://github.com/Shopify/maintenance_tasks/tree/v2.7.1
|
175
189
|
allowed_push_host: https://rubygems.org
|
176
190
|
post_install_message:
|
177
191
|
rdoc_options: []
|
@@ -188,7 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
188
202
|
- !ruby/object:Gem::Version
|
189
203
|
version: '0'
|
190
204
|
requirements: []
|
191
|
-
rubygems_version: 3.5.
|
205
|
+
rubygems_version: 3.5.11
|
192
206
|
signing_key:
|
193
207
|
specification_version: 4
|
194
208
|
summary: A Rails engine for queuing and managing maintenance tasks
|