shoryuken 3.2.2 → 3.2.3
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 +111 -100
- data/bin/cli/sqs.rb +4 -3
- data/lib/shoryuken/environment_loader.rb +4 -2
- data/lib/shoryuken/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 947fa421a7ad3a686cff9069cc08bb2955279d2d
|
|
4
|
+
data.tar.gz: 72a4493b5a3a509e82542a374189c1b4502c917c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 445b25ba5392c9e53b70c99249459ff69fa2fa8eada5ac7db287acc7caecb9fe85357c81afbff15238f4e13487884ccf53a4ccaa365459e5bdb31618f6b72a82
|
|
7
|
+
data.tar.gz: 146f3c31f6f085dc3d3833d43597c7e61bf0bcdb6a7333962095bf6c141435383baedb2edf94f604bbad8a3ca8d3987d5c70c605c90cb37c1e2e14515b2316f2
|
data/CHANGELOG.md
CHANGED
|
@@ -1,387 +1,398 @@
|
|
|
1
|
+
## [v3.2.3] - 2018-03-25
|
|
2
|
+
|
|
3
|
+
- Don't force eager load for Rails 5
|
|
4
|
+
- [#480](https://github.com/phstc/shoryuken/pull/480)
|
|
5
|
+
|
|
6
|
+
- Allow Batch Size to be Specified for Requeue
|
|
7
|
+
- [#478](https://github.com/phstc/shoryuken/pull/478)
|
|
8
|
+
|
|
9
|
+
- Support FIFO queues in `shoryuken sqs` commands
|
|
10
|
+
- [#473](https://github.com/phstc/shoryuken/pull/473)
|
|
11
|
+
|
|
1
12
|
## [v3.2.2] - 2018-02-13
|
|
2
13
|
|
|
3
14
|
- Fix requeue' for FIFO queues
|
|
4
|
-
|
|
15
|
+
- [#48fcb42](https://github.com/phstc/shoryuken/commit/48fcb4260c3b41a9e45fa29bb857e8fa37dcee82)
|
|
5
16
|
|
|
6
17
|
## [v3.2.1] - 2018-02-12
|
|
7
18
|
|
|
8
19
|
- Support FIFO queues in `shoryuken sqs` commands
|
|
9
|
-
|
|
20
|
+
- [#473](https://github.com/phstc/shoryuken/pull/473)
|
|
10
21
|
|
|
11
22
|
- Allow customizing the default executor launcher
|
|
12
|
-
|
|
23
|
+
- [#469](https://github.com/phstc/shoryuken/pull/469)
|
|
13
24
|
|
|
14
25
|
- Exclude job_id from message deduplication when ActiveJob
|
|
15
|
-
|
|
26
|
+
- [#462](https://github.com/phstc/shoryuken/pull/462)
|
|
16
27
|
|
|
17
28
|
## [v3.2.0] - 2018-01-03
|
|
18
29
|
|
|
19
30
|
- Preserve parent worker class options
|
|
20
|
-
|
|
31
|
+
- [#451](https://github.com/phstc/shoryuken/pull/451)
|
|
21
32
|
|
|
22
33
|
- Add -t (shutdown timeout) option to CL
|
|
23
|
-
|
|
34
|
+
- [#449](https://github.com/phstc/shoryuken/pull/449)
|
|
24
35
|
|
|
25
36
|
- Support inline (Active Job like) for standard workers
|
|
26
|
-
|
|
37
|
+
- [#448](https://github.com/phstc/shoryuken/pull/448)
|
|
27
38
|
|
|
28
39
|
## [v3.1.12] - 2017-09-25
|
|
29
40
|
|
|
30
41
|
- Reduce fetch log verbosity
|
|
31
|
-
|
|
42
|
+
- [#436](https://github.com/phstc/shoryuken/pull/436)
|
|
32
43
|
|
|
33
44
|
## [v3.1.11] - 2017-09-02
|
|
34
45
|
|
|
35
46
|
- Auto retry (up to 3 times) fetch errors
|
|
36
|
-
|
|
47
|
+
- [#429](https://github.com/phstc/shoryuken/pull/429)
|
|
37
48
|
|
|
38
49
|
## [v3.1.10] - 2017-09-02
|
|
39
50
|
|
|
40
51
|
- Make Shoryuken compatible with AWS SDK 3 and 2
|
|
41
|
-
|
|
52
|
+
- [#433](https://github.com/phstc/shoryuken/pull/433)
|
|
42
53
|
|
|
43
54
|
## [v3.1.9] - 2017-08-24
|
|
44
55
|
|
|
45
56
|
- Add support for adding a middleware to the front of chain
|
|
46
|
-
|
|
57
|
+
- [#427](https://github.com/phstc/shoryuken/pull/427)
|
|
47
58
|
|
|
48
59
|
- Add support for dispatch fire event
|
|
49
|
-
|
|
60
|
+
- [#426](https://github.com/phstc/shoryuken/pull/426)
|
|
50
61
|
|
|
51
62
|
## [v3.1.8] - 2017-08-17
|
|
52
63
|
|
|
53
64
|
- Make Polling strategy backward compatibility
|
|
54
|
-
|
|
65
|
+
- [#424](https://github.com/phstc/shoryuken/pull/424)
|
|
55
66
|
|
|
56
67
|
## [v3.1.7] - 2017-07-31
|
|
57
68
|
|
|
58
69
|
- Allow polling strategy per group
|
|
59
|
-
|
|
70
|
+
- [#417](https://github.com/phstc/shoryuken/pull/417)
|
|
60
71
|
|
|
61
72
|
- Add support for creating FIFO queues
|
|
62
|
-
|
|
73
|
+
- [#419](https://github.com/phstc/shoryuken/pull/419)
|
|
63
74
|
|
|
64
75
|
- Allow receive message options per queue
|
|
65
|
-
|
|
76
|
+
- [#420](https://github.com/phstc/shoryuken/pull/420)
|
|
66
77
|
|
|
67
78
|
## [v3.1.6] - 2017-07-24
|
|
68
79
|
|
|
69
80
|
- Fix issue with dispatch_loop and delays
|
|
70
|
-
|
|
81
|
+
- [#416](https://github.com/phstc/shoryuken/pull/416)
|
|
71
82
|
|
|
72
83
|
## [v3.1.5] - 2017-07-23
|
|
73
84
|
|
|
74
85
|
- Fix memory leak
|
|
75
|
-
|
|
86
|
+
- [#414](https://github.com/phstc/shoryuken/pull/414)
|
|
76
87
|
|
|
77
88
|
- Fail fast on bad queue URLs
|
|
78
|
-
|
|
89
|
+
- [#413](https://github.com/phstc/shoryuken/pull/413)
|
|
79
90
|
|
|
80
91
|
## [v3.1.4] - 2017-07-14
|
|
81
92
|
|
|
82
93
|
- Require forwardable allowding to call `shoryuken` without `bundle exec`
|
|
83
|
-
|
|
94
|
+
- [#409](https://github.com/phstc/shoryuken/pull/409)
|
|
84
95
|
|
|
85
96
|
## [v3.1.3] - 2017-07-11
|
|
86
97
|
|
|
87
98
|
- Add queue prefixing support for groups
|
|
88
|
-
|
|
99
|
+
- [#405](https://github.com/phstc/shoryuken/pull/405)
|
|
89
100
|
|
|
90
101
|
- Remove dead code
|
|
91
|
-
|
|
102
|
+
- [#402](https://github.com/phstc/shoryuken/pull/402)
|
|
92
103
|
|
|
93
104
|
## [v3.1.2] - 2017-07-06
|
|
94
105
|
|
|
95
106
|
- Fix stack level too deep on Ubuntu
|
|
96
|
-
|
|
107
|
+
- [#400](https://github.com/phstc/shoryuken/pull/400)
|
|
97
108
|
|
|
98
109
|
## [v3.1.1] - 2017-07-05
|
|
99
110
|
|
|
100
111
|
- Reduce log verbosity introduced in 3.1.0
|
|
101
|
-
|
|
112
|
+
- [#397](https://github.com/phstc/shoryuken/pull/397)
|
|
102
113
|
|
|
103
114
|
- Try to prevent stack level too deep on Ubuntu
|
|
104
|
-
|
|
115
|
+
- [#396](https://github.com/phstc/shoryuken/pull/396)
|
|
105
116
|
|
|
106
117
|
## [v3.1.0] - 2017-07-02
|
|
107
118
|
|
|
108
119
|
- Add shoryuken sqs delete command
|
|
109
|
-
|
|
120
|
+
- [#395](https://github.com/phstc/shoryuken/pull/395)
|
|
110
121
|
|
|
111
122
|
- Add processing groups support; Concurrency per queue support
|
|
112
|
-
|
|
123
|
+
- [#389](https://github.com/phstc/shoryuken/pull/389)
|
|
113
124
|
|
|
114
125
|
- Terminate Shoryuken if the fetcher crashes
|
|
115
|
-
|
|
126
|
+
- [#389](https://github.com/phstc/shoryuken/pull/389)
|
|
116
127
|
|
|
117
128
|
## [v3.0.11] - 2017-06-24
|
|
118
129
|
|
|
119
130
|
- Add shoryuken sqs create command
|
|
120
|
-
|
|
131
|
+
- [#388](https://github.com/phstc/shoryuken/pull/388)
|
|
121
132
|
|
|
122
133
|
## [v3.0.10] - 2017-06-24
|
|
123
134
|
|
|
124
135
|
- Allow aws sdk v3
|
|
125
|
-
|
|
136
|
+
- [#381](https://github.com/phstc/shoryuken/pull/381)
|
|
126
137
|
|
|
127
138
|
- Allow configuring Rails via the config file
|
|
128
|
-
|
|
139
|
+
- [#387](https://github.com/phstc/shoryuken/pull/387)
|
|
129
140
|
|
|
130
141
|
## [v3.0.9] - 2017-06-05
|
|
131
142
|
|
|
132
143
|
- Allow configuring queue URLs instead of names
|
|
133
|
-
|
|
144
|
+
- [#378](https://github.com/phstc/shoryuken/pull/378)
|
|
134
145
|
|
|
135
146
|
## [v3.0.8] - 2017-06-02
|
|
136
147
|
|
|
137
148
|
- Fix miss handling empty batch fetches
|
|
138
|
-
|
|
149
|
+
- [#376](https://github.com/phstc/shoryuken/pull/376)
|
|
139
150
|
|
|
140
151
|
- Various minor styling changes :lipstick:
|
|
141
|
-
|
|
152
|
+
- [#373](https://github.com/phstc/shoryuken/pull/373)
|
|
142
153
|
|
|
143
154
|
- Logout when batch delete returns any failure
|
|
144
|
-
|
|
155
|
+
- [#371](https://github.com/phstc/shoryuken/pull/371)
|
|
145
156
|
|
|
146
157
|
## [v3.0.7] - 2017-05-18
|
|
147
158
|
|
|
148
159
|
- Trigger events for dispatch
|
|
149
|
-
|
|
160
|
+
- [#362](https://github.com/phstc/shoryuken/pull/362)
|
|
150
161
|
|
|
151
162
|
- Log (warn) exponential backoff tries
|
|
152
|
-
|
|
163
|
+
- [#365](https://github.com/phstc/shoryuken/pull/365)
|
|
153
164
|
|
|
154
165
|
- Fix displaying of long queue names in `shoryuken sqs ls`
|
|
155
|
-
|
|
166
|
+
- [#366](https://github.com/phstc/shoryuken/pull/366)
|
|
156
167
|
|
|
157
168
|
## [v3.0.6] - 2017-04-11
|
|
158
169
|
|
|
159
170
|
- Fix delay option type
|
|
160
|
-
|
|
171
|
+
- [#356](https://github.com/phstc/shoryuken/pull/356)
|
|
161
172
|
|
|
162
173
|
## [v3.0.5] - 2017-04-09
|
|
163
174
|
|
|
164
175
|
- Pause endless dispatcher to avoid CPU overload
|
|
165
|
-
|
|
176
|
+
- [#354](https://github.com/phstc/shoryuken/pull/354)
|
|
166
177
|
|
|
167
178
|
- Auto log processor errors
|
|
168
|
-
|
|
179
|
+
- [#355](https://github.com/phstc/shoryuken/pull/355)
|
|
169
180
|
|
|
170
181
|
- Add a delay as a CLI param
|
|
171
|
-
|
|
182
|
+
- [#350](https://github.com/phstc/shoryuken/pull/350)
|
|
172
183
|
|
|
173
184
|
- Add `sqs purge` command. See https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_PurgeQueue.html
|
|
174
|
-
|
|
185
|
+
- [#344](https://github.com/phstc/shoryuken/pull/344)
|
|
175
186
|
|
|
176
187
|
## [v3.0.4] - 2017-03-24
|
|
177
188
|
|
|
178
189
|
- Add `sqs purge` command. See https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_PurgeQueue.html
|
|
179
|
-
|
|
190
|
+
- [#344](https://github.com/phstc/shoryuken/pull/344)
|
|
180
191
|
|
|
181
192
|
- Fix "Thread exhaustion" error. This issue was most noticed when using long polling. @waynerobinson :beers: for pairing up on this.
|
|
182
|
-
|
|
193
|
+
- [#345](https://github.com/phstc/shoryuken/pull/345)
|
|
183
194
|
|
|
184
195
|
## [v3.0.3] - 2017-03-19
|
|
185
196
|
|
|
186
197
|
- Update `sqs` CLI commands to use `get_queue_url` when appropriated
|
|
187
|
-
|
|
198
|
+
- [#341](https://github.com/phstc/shoryuken/pull/341)
|
|
188
199
|
|
|
189
200
|
## [v3.0.2] - 2017-03-19
|
|
190
201
|
|
|
191
202
|
- Fix custom SQS client initialization
|
|
192
|
-
|
|
203
|
+
- [#335](https://github.com/phstc/shoryuken/pull/335)
|
|
193
204
|
|
|
194
205
|
## [v3.0.1] - 2017-03-13
|
|
195
206
|
|
|
196
207
|
- Fix commands sqs mv and dump `options.delete` checker
|
|
197
|
-
|
|
208
|
+
- [#332](https://github.com/phstc/shoryuken/pull/332)
|
|
198
209
|
|
|
199
210
|
## [v3.0.0] - 2017-03-12
|
|
200
211
|
|
|
201
212
|
- Replace Celluloid with Concurrent Ruby
|
|
202
|
-
|
|
213
|
+
- [#291](https://github.com/phstc/shoryuken/pull/291)
|
|
203
214
|
|
|
204
215
|
- Remove AWS configuration from Shoryuken. Now AWS should be configured from outside. Check [this](https://github.com/phstc/shoryuken/wiki/Configure-the-AWS-Client) for more details
|
|
205
|
-
|
|
216
|
+
- [#317](https://github.com/phstc/shoryuken/pull/317)
|
|
206
217
|
|
|
207
218
|
- Remove deprecation warnings
|
|
208
|
-
|
|
219
|
+
- [#326](https://github.com/phstc/shoryuken/pull/326)
|
|
209
220
|
|
|
210
221
|
- Allow dynamic adding queues
|
|
211
|
-
|
|
222
|
+
- [#322](https://github.com/phstc/shoryuken/pull/322)
|
|
212
223
|
|
|
213
224
|
- Support retry_intervals passed in as a lambda. Auto coerce intervals into integer
|
|
214
|
-
|
|
225
|
+
- [#329](https://github.com/phstc/shoryuken/pull/329)
|
|
215
226
|
|
|
216
227
|
- Add SQS commands `shoryuken help sqs`, such as `ls`, `mv`, `dump` and `requeue`
|
|
217
|
-
|
|
228
|
+
- [#330](https://github.com/phstc/shoryuken/pull/330)
|
|
218
229
|
|
|
219
230
|
## [v2.1.3] - 2017-01-27
|
|
220
231
|
|
|
221
232
|
- Show a warn message when batch isn't supported
|
|
222
|
-
|
|
233
|
+
- [#302](https://github.com/phstc/shoryuken/pull/302)
|
|
223
234
|
|
|
224
235
|
- Require Celluloid ~> 17
|
|
225
|
-
|
|
236
|
+
- [#305](https://github.com/phstc/shoryuken/pull/305)
|
|
226
237
|
|
|
227
238
|
- Fix excessive logging when 0 messages found
|
|
228
|
-
|
|
239
|
+
- [#307](https://github.com/phstc/shoryuken/pull/307)
|
|
229
240
|
|
|
230
241
|
## [v2.1.2] - 2016-12-22
|
|
231
242
|
|
|
232
243
|
- Fix loading `logfile` from shoryuken.yml
|
|
233
|
-
|
|
244
|
+
- [#296](https://github.com/phstc/shoryuken/pull/296)
|
|
234
245
|
|
|
235
246
|
- Add support for Strict priority polling (pending documentation)
|
|
236
|
-
|
|
247
|
+
- [#288](https://github.com/phstc/shoryuken/pull/288)
|
|
237
248
|
|
|
238
249
|
- Add `test_workers` for end-to-end testing supporting
|
|
239
|
-
|
|
250
|
+
- [#286](https://github.com/phstc/shoryuken/pull/286)
|
|
240
251
|
|
|
241
252
|
- Update README documenting `configure_client` and `configure_server`
|
|
242
|
-
|
|
253
|
+
- [#283](https://github.com/phstc/shoryuken/pull/283)
|
|
243
254
|
|
|
244
255
|
- Fix memory leak caused by async tracking busy threads
|
|
245
|
-
|
|
256
|
+
- [#289](https://github.com/phstc/shoryuken/pull/289)
|
|
246
257
|
|
|
247
258
|
- Refactor fetcher, polling strategy and manager
|
|
248
|
-
|
|
259
|
+
- [#284](https://github.com/phstc/shoryuken/pull/284)
|
|
249
260
|
|
|
250
261
|
## [v2.1.1] - 2016-12-05
|
|
251
262
|
|
|
252
263
|
- Fix aws deprecation warning message
|
|
253
|
-
|
|
264
|
+
- [#279](https://github.com/phstc/shoryuken/pull/279)
|
|
254
265
|
|
|
255
266
|
## [v2.1.0] - 2016-12-03
|
|
256
267
|
|
|
257
268
|
- Fix celluloid "running in BACKPORTED mode" warning
|
|
258
|
-
|
|
269
|
+
- [#260](https://github.com/phstc/shoryuken/pull/260)
|
|
259
270
|
|
|
260
271
|
- Allow setting the aws configuration in 'Shoryuken.configure_server'
|
|
261
|
-
|
|
272
|
+
- [#252](https://github.com/phstc/shoryuken/pull/252)
|
|
262
273
|
|
|
263
274
|
- Allow requiring a file or dir a through `-r`
|
|
264
|
-
|
|
275
|
+
- [#248](https://github.com/phstc/shoryuken/pull/248)
|
|
265
276
|
|
|
266
277
|
- Reduce info log verbosity
|
|
267
|
-
|
|
278
|
+
- [#243](https://github.com/phstc/shoryuken/pull/243)
|
|
268
279
|
|
|
269
280
|
- Fix auto extender when using ActiveJob
|
|
270
|
-
|
|
281
|
+
- [#3213](https://github.com/phstc/shoryuken/pull/213)
|
|
271
282
|
|
|
272
283
|
- Add FIFO queue support
|
|
273
|
-
|
|
284
|
+
- [#272](https://github.com/phstc/shoryuken/issues/272)
|
|
274
285
|
|
|
275
286
|
- Deprecates initialize_aws
|
|
276
|
-
|
|
287
|
+
- [#269](https://github.com/phstc/shoryuken/pull/269)
|
|
277
288
|
|
|
278
289
|
- [Other miscellaneous updates](https://github.com/phstc/shoryuken/compare/v2.0.11...v2.1.0)
|
|
279
290
|
|
|
280
291
|
## [v2.0.11] - 2016-07-02
|
|
281
292
|
|
|
282
293
|
- Same as 2.0.10. Unfortunately 2.0.10 was removed `yanked` by mistake from RubyGems.
|
|
283
|
-
|
|
294
|
+
- [#b255bc3](https://github.com/phstc/shoryuken/commit/b255bc3)
|
|
284
295
|
|
|
285
296
|
## [v2.0.10] - 2016-06-09
|
|
286
297
|
|
|
287
298
|
- Fix manager #225
|
|
288
|
-
|
|
299
|
+
- [#226](https://github.com/phstc/shoryuken/pull/226)
|
|
289
300
|
|
|
290
301
|
## [v2.0.9] - 2016-06-08
|
|
291
302
|
|
|
292
303
|
- Fix daemonization broken in #219
|
|
293
|
-
|
|
304
|
+
- [#224](https://github.com/phstc/shoryuken/pull/224)
|
|
294
305
|
|
|
295
306
|
## [v2.0.8] - 2016-06-07
|
|
296
307
|
|
|
297
308
|
- Fix daemonization
|
|
298
|
-
|
|
309
|
+
- [#223](https://github.com/phstc/shoryuken/pull/223)
|
|
299
310
|
|
|
300
311
|
## [v2.0.7] - 2016-06-06
|
|
301
312
|
|
|
302
313
|
- Daemonize before loading environment
|
|
303
|
-
|
|
314
|
+
- [#219](https://github.com/phstc/shoryuken/pull/219)
|
|
304
315
|
|
|
305
316
|
- Fix initialization when using rails
|
|
306
|
-
|
|
317
|
+
- [#197](https://github.com/phstc/shoryuken/pull/197)
|
|
307
318
|
|
|
308
319
|
- Improve message fetching
|
|
309
|
-
|
|
310
|
-
|
|
320
|
+
- [#214](https://github.com/phstc/shoryuken/pull/214)
|
|
321
|
+
- [#f4640d9](https://github.com/phstc/shoryuken/commit/f4640d9)
|
|
311
322
|
|
|
312
323
|
- Fix hard shutdown if there are some busy workers when signal received
|
|
313
|
-
|
|
324
|
+
- [#215](https://github.com/phstc/shoryuken/pull/215)
|
|
314
325
|
|
|
315
326
|
- Fix `rake console` task
|
|
316
|
-
|
|
327
|
+
- [#208](https://github.com/phstc/shoryuken/pull/208)
|
|
317
328
|
|
|
318
329
|
- Isolate `MessageVisibilityExtender` as new middleware
|
|
319
|
-
|
|
330
|
+
- [#199](https://github.com/phstc/shoryuken/pull/190)
|
|
320
331
|
|
|
321
332
|
- Fail on non-existent queues
|
|
322
|
-
|
|
333
|
+
- [#196](https://github.com/phstc/shoryuken/pull/196)
|
|
323
334
|
|
|
324
335
|
## [v2.0.6] - 2016-04-18
|
|
325
336
|
|
|
326
337
|
- Fix log initialization introduced by #191
|
|
327
|
-
|
|
338
|
+
- [#195](https://github.com/phstc/shoryuken/pull/195)
|
|
328
339
|
|
|
329
340
|
## [v2.0.5] - 2016-04-17
|
|
330
341
|
|
|
331
342
|
- Fix log initialization when using `Shoryuken::EnvironmentLoader#load`
|
|
332
|
-
|
|
343
|
+
- [#191](https://github.com/phstc/shoryuken/pull/191)
|
|
333
344
|
|
|
334
|
-
|
|
335
|
-
|
|
345
|
+
- Fix `enqueue_at` in the ActiveJob Adapter
|
|
346
|
+
- [#182](https://github.com/phstc/shoryuken/pull/182)
|
|
336
347
|
|
|
337
348
|
## [v2.0.4] - 2016-02-04
|
|
338
349
|
|
|
339
350
|
- Add Rails 3 support
|
|
340
|
-
|
|
351
|
+
- [#175](https://github.com/phstc/shoryuken/pull/175)
|
|
341
352
|
|
|
342
353
|
- Allow symbol as a queue name in shoryuken_options
|
|
343
|
-
|
|
354
|
+
- [#177](https://github.com/phstc/shoryuken/pull/177)
|
|
344
355
|
|
|
345
356
|
- Make sure bundler is always updated on Travis CI
|
|
346
|
-
|
|
357
|
+
- [#176](https://github.com/phstc/shoryuken/pull/176)
|
|
347
358
|
|
|
348
359
|
- Add Rails 5 compatibility
|
|
349
|
-
|
|
360
|
+
- [#174](https://github.com/phstc/shoryuken/pull/174)
|
|
350
361
|
|
|
351
362
|
## [v2.0.3] - 2015-12-30
|
|
352
363
|
|
|
353
364
|
- Allow multiple queues per worker
|
|
354
|
-
|
|
365
|
+
- [#164](https://github.com/phstc/shoryuken/pull/164)
|
|
355
366
|
|
|
356
367
|
- Fix typo
|
|
357
|
-
|
|
368
|
+
- [#166](https://github.com/phstc/shoryuken/pull/166)
|
|
358
369
|
|
|
359
370
|
## [v2.0.2] - 2015-10-27
|
|
360
371
|
|
|
361
372
|
- Fix warnings that are triggered in some cases with the raise_error matcher
|
|
362
|
-
|
|
373
|
+
- [#144](https://github.com/phstc/shoryuken/pull/144)
|
|
363
374
|
|
|
364
375
|
- Add lifecycle event registration support
|
|
365
|
-
|
|
376
|
+
- [#141](https://github.com/phstc/shoryuken/pull/141)
|
|
366
377
|
|
|
367
378
|
- Allow passing array of messages to send_messages
|
|
368
|
-
|
|
379
|
+
- [#140](https://github.com/phstc/shoryuken/pull/140)
|
|
369
380
|
|
|
370
381
|
- Fix Active Job queue prefixing in Rails apps
|
|
371
|
-
|
|
382
|
+
- [#139](https://github.com/phstc/shoryuken/pull/139)
|
|
372
383
|
|
|
373
384
|
- Enable override the default queue with a :queue option
|
|
374
|
-
|
|
385
|
+
- [#147](https://github.com/phstc/shoryuken/pull/147)
|
|
375
386
|
|
|
376
387
|
## [v2.0.1] - 2015-10-09
|
|
377
388
|
|
|
378
389
|
- Bump aws-sdk to ~> 2
|
|
379
|
-
|
|
390
|
+
- [#138](https://github.com/phstc/shoryuken/pull/138)
|
|
380
391
|
|
|
381
392
|
## [v2.0.0] - 2015-09-22
|
|
382
393
|
|
|
383
394
|
- Allow configuration of SQS/SNS endpoints via environment variables
|
|
384
|
-
|
|
395
|
+
- [#130](https://github.com/phstc/shoryuken/pull/130)
|
|
385
396
|
|
|
386
397
|
- Expose queue_name in the message object
|
|
387
398
|
- [#127](https://github.com/phstc/shoryuken/pull/127)
|
data/bin/cli/sqs.rb
CHANGED
|
@@ -43,8 +43,8 @@ module Shoryuken
|
|
|
43
43
|
end
|
|
44
44
|
end
|
|
45
45
|
|
|
46
|
-
def batch_send(url, messages)
|
|
47
|
-
messages.to_a.flatten.map(&method(:normalize_dump_message)).each_slice(
|
|
46
|
+
def batch_send(url, messages, messages_per_batch = 10)
|
|
47
|
+
messages.to_a.flatten.map(&method(:normalize_dump_message)).each_slice(messages_per_batch) do |batch|
|
|
48
48
|
sqs.send_message_batch(queue_url: url, entries: batch).failed.any? do |failure|
|
|
49
49
|
say "Could not requeue #{failure.id}, code: #{failure.code}", :yellow
|
|
50
50
|
end
|
|
@@ -152,12 +152,13 @@ module Shoryuken
|
|
|
152
152
|
end
|
|
153
153
|
|
|
154
154
|
desc 'requeue QUEUE-NAME PATH', 'Requeues messages from a dump file'
|
|
155
|
+
method_option :batch_size, aliases: '-n', type: :numeric, default: 10, desc: 'number of messages per batch to send'
|
|
155
156
|
def requeue(queue_name, path)
|
|
156
157
|
fail_task "Path #{path} not found" unless File.exist?(path)
|
|
157
158
|
|
|
158
159
|
messages = File.readlines(path).map { |line| JSON.parse(line, symbolize_names: true) }
|
|
159
160
|
|
|
160
|
-
batch_send(find_queue_url(queue_name), messages)
|
|
161
|
+
batch_send(find_queue_url(queue_name), messages, options[:batch_size])
|
|
161
162
|
|
|
162
163
|
say "Requeued #{messages.size} messages from #{path} to #{queue_name}", :green
|
|
163
164
|
end
|
|
@@ -66,8 +66,10 @@ module Shoryuken
|
|
|
66
66
|
else
|
|
67
67
|
# Painful contortions, see 1791 for discussion
|
|
68
68
|
require File.expand_path('config/application.rb')
|
|
69
|
-
::Rails::
|
|
70
|
-
::Rails.
|
|
69
|
+
if ::Rails::VERSION::MAJOR == 4
|
|
70
|
+
::Rails::Application.initializer 'shoryuken.eager_load' do
|
|
71
|
+
::Rails.application.config.eager_load = true
|
|
72
|
+
end
|
|
71
73
|
end
|
|
72
74
|
require 'shoryuken/extensions/active_job_adapter' if Shoryuken.active_job?
|
|
73
75
|
require File.expand_path('config/environment.rb')
|
data/lib/shoryuken/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: shoryuken
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.2.
|
|
4
|
+
version: 3.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Pablo Cantero
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-03-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|