cloudtasker 0.6.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/.rubocop.yml +5 -0
- data/.travis.yml +3 -3
- data/CHANGELOG.md +38 -0
- data/README.md +142 -26
- data/_config.yml +1 -0
- data/app/controllers/cloudtasker/worker_controller.rb +21 -5
- data/cloudtasker.gemspec +2 -2
- data/docs/BATCH_JOBS.md +29 -4
- data/docs/CRON_JOBS.md +18 -14
- data/exe/cloudtasker +13 -1
- data/gemfiles/google_cloud_tasks_1.0.gemfile.lock +26 -9
- data/gemfiles/google_cloud_tasks_1.1.gemfile.lock +26 -9
- data/gemfiles/google_cloud_tasks_1.2.gemfile.lock +27 -10
- data/gemfiles/google_cloud_tasks_1.3.gemfile.lock +26 -9
- data/gemfiles/rails_5.2.gemfile.lock +26 -9
- data/gemfiles/rails_6.0.gemfile.lock +27 -10
- data/lib/cloudtasker.rb +0 -1
- data/lib/cloudtasker/backend/google_cloud_task.rb +65 -12
- data/lib/cloudtasker/backend/memory_task.rb +5 -3
- data/lib/cloudtasker/backend/redis_task.rb +24 -13
- data/lib/cloudtasker/batch/batch_progress.rb +11 -2
- data/lib/cloudtasker/batch/job.rb +18 -4
- data/lib/cloudtasker/cli.rb +6 -5
- data/lib/cloudtasker/cloud_task.rb +4 -2
- data/lib/cloudtasker/config.rb +30 -9
- data/lib/cloudtasker/cron/job.rb +2 -2
- data/lib/cloudtasker/cron/schedule.rb +26 -14
- data/lib/cloudtasker/local_server.rb +44 -22
- data/lib/cloudtasker/redis_client.rb +10 -7
- data/lib/cloudtasker/unique_job/job.rb +2 -2
- data/lib/cloudtasker/version.rb +1 -1
- data/lib/cloudtasker/worker.rb +46 -10
- data/lib/cloudtasker/worker_handler.rb +7 -5
- data/lib/cloudtasker/worker_logger.rb +1 -1
- data/lib/cloudtasker/worker_wrapper.rb +52 -0
- data/lib/tasks/setup_queue.rake +12 -2
- metadata +6 -6
- data/Gemfile.lock +0 -280
- data/lib/cloudtasker/railtie.rb +0 -10
data/Gemfile.lock
DELETED
@@ -1,280 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
cloudtasker (0.6.0)
|
5
|
-
activesupport
|
6
|
-
fugit
|
7
|
-
google-cloud-tasks
|
8
|
-
jwt
|
9
|
-
redis
|
10
|
-
|
11
|
-
GEM
|
12
|
-
remote: https://rubygems.org/
|
13
|
-
specs:
|
14
|
-
actioncable (6.0.0)
|
15
|
-
actionpack (= 6.0.0)
|
16
|
-
nio4r (~> 2.0)
|
17
|
-
websocket-driver (>= 0.6.1)
|
18
|
-
actionmailbox (6.0.0)
|
19
|
-
actionpack (= 6.0.0)
|
20
|
-
activejob (= 6.0.0)
|
21
|
-
activerecord (= 6.0.0)
|
22
|
-
activestorage (= 6.0.0)
|
23
|
-
activesupport (= 6.0.0)
|
24
|
-
mail (>= 2.7.1)
|
25
|
-
actionmailer (6.0.0)
|
26
|
-
actionpack (= 6.0.0)
|
27
|
-
actionview (= 6.0.0)
|
28
|
-
activejob (= 6.0.0)
|
29
|
-
mail (~> 2.5, >= 2.5.4)
|
30
|
-
rails-dom-testing (~> 2.0)
|
31
|
-
actionpack (6.0.0)
|
32
|
-
actionview (= 6.0.0)
|
33
|
-
activesupport (= 6.0.0)
|
34
|
-
rack (~> 2.0)
|
35
|
-
rack-test (>= 0.6.3)
|
36
|
-
rails-dom-testing (~> 2.0)
|
37
|
-
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
38
|
-
actiontext (6.0.0)
|
39
|
-
actionpack (= 6.0.0)
|
40
|
-
activerecord (= 6.0.0)
|
41
|
-
activestorage (= 6.0.0)
|
42
|
-
activesupport (= 6.0.0)
|
43
|
-
nokogiri (>= 1.8.5)
|
44
|
-
actionview (6.0.0)
|
45
|
-
activesupport (= 6.0.0)
|
46
|
-
builder (~> 3.1)
|
47
|
-
erubi (~> 1.4)
|
48
|
-
rails-dom-testing (~> 2.0)
|
49
|
-
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
50
|
-
activejob (6.0.0)
|
51
|
-
activesupport (= 6.0.0)
|
52
|
-
globalid (>= 0.3.6)
|
53
|
-
activemodel (6.0.0)
|
54
|
-
activesupport (= 6.0.0)
|
55
|
-
activerecord (6.0.0)
|
56
|
-
activemodel (= 6.0.0)
|
57
|
-
activesupport (= 6.0.0)
|
58
|
-
activestorage (6.0.0)
|
59
|
-
actionpack (= 6.0.0)
|
60
|
-
activejob (= 6.0.0)
|
61
|
-
activerecord (= 6.0.0)
|
62
|
-
marcel (~> 0.3.1)
|
63
|
-
activesupport (6.0.0)
|
64
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
65
|
-
i18n (>= 0.7, < 2)
|
66
|
-
minitest (~> 5.1)
|
67
|
-
tzinfo (~> 1.1)
|
68
|
-
zeitwerk (~> 2.1, >= 2.1.8)
|
69
|
-
addressable (2.7.0)
|
70
|
-
public_suffix (>= 2.0.2, < 5.0)
|
71
|
-
appraisal (2.2.0)
|
72
|
-
bundler
|
73
|
-
rake
|
74
|
-
thor (>= 0.14.0)
|
75
|
-
ast (2.4.0)
|
76
|
-
builder (3.2.3)
|
77
|
-
concurrent-ruby (1.1.5)
|
78
|
-
crack (0.4.3)
|
79
|
-
safe_yaml (~> 1.0.0)
|
80
|
-
crass (1.0.5)
|
81
|
-
diff-lcs (1.3)
|
82
|
-
erubi (1.9.0)
|
83
|
-
et-orbi (1.2.2)
|
84
|
-
tzinfo
|
85
|
-
faraday (0.17.0)
|
86
|
-
multipart-post (>= 1.2, < 3)
|
87
|
-
faraday-http-cache (2.0.0)
|
88
|
-
faraday (~> 0.8)
|
89
|
-
fugit (1.3.3)
|
90
|
-
et-orbi (~> 1.1, >= 1.1.8)
|
91
|
-
raabro (~> 1.1)
|
92
|
-
github_changelog_generator (1.15.0)
|
93
|
-
activesupport
|
94
|
-
faraday-http-cache
|
95
|
-
multi_json
|
96
|
-
octokit (~> 4.6)
|
97
|
-
rainbow (>= 2.2.1)
|
98
|
-
rake (>= 10.0)
|
99
|
-
retriable (~> 3.0)
|
100
|
-
globalid (0.4.2)
|
101
|
-
activesupport (>= 4.2.0)
|
102
|
-
google-cloud-tasks (1.3.1)
|
103
|
-
google-gax (~> 1.8)
|
104
|
-
googleapis-common-protos (>= 1.3.9, < 2.0)
|
105
|
-
googleapis-common-protos-types (>= 1.0.4, < 2.0)
|
106
|
-
grpc-google-iam-v1 (~> 0.6.9)
|
107
|
-
google-gax (1.8.1)
|
108
|
-
google-protobuf (~> 3.9)
|
109
|
-
googleapis-common-protos (>= 1.3.9, < 2.0)
|
110
|
-
googleauth (~> 0.9)
|
111
|
-
grpc (~> 1.24)
|
112
|
-
rly (~> 0.2.3)
|
113
|
-
google-protobuf (3.10.1-universal-darwin)
|
114
|
-
googleapis-common-protos (1.3.9)
|
115
|
-
google-protobuf (~> 3.0)
|
116
|
-
googleapis-common-protos-types (~> 1.0)
|
117
|
-
grpc (~> 1.0)
|
118
|
-
googleapis-common-protos-types (1.0.4)
|
119
|
-
google-protobuf (~> 3.0)
|
120
|
-
googleauth (0.10.0)
|
121
|
-
faraday (~> 0.12)
|
122
|
-
jwt (>= 1.4, < 3.0)
|
123
|
-
memoist (~> 0.16)
|
124
|
-
multi_json (~> 1.11)
|
125
|
-
os (>= 0.9, < 2.0)
|
126
|
-
signet (~> 0.12)
|
127
|
-
grpc (1.25.0-universal-darwin)
|
128
|
-
google-protobuf (~> 3.8)
|
129
|
-
googleapis-common-protos-types (~> 1.0)
|
130
|
-
grpc-google-iam-v1 (0.6.9)
|
131
|
-
googleapis-common-protos (>= 1.3.1, < 2.0)
|
132
|
-
grpc (~> 1.0)
|
133
|
-
hashdiff (1.0.0)
|
134
|
-
i18n (1.7.0)
|
135
|
-
concurrent-ruby (~> 1.0)
|
136
|
-
jaro_winkler (1.5.4)
|
137
|
-
jwt (2.2.1)
|
138
|
-
loofah (2.3.1)
|
139
|
-
crass (~> 1.0.2)
|
140
|
-
nokogiri (>= 1.5.9)
|
141
|
-
mail (2.7.1)
|
142
|
-
mini_mime (>= 0.1.1)
|
143
|
-
marcel (0.3.3)
|
144
|
-
mimemagic (~> 0.3.2)
|
145
|
-
memoist (0.16.1)
|
146
|
-
method_source (0.9.2)
|
147
|
-
mimemagic (0.3.3)
|
148
|
-
mini_mime (1.0.2)
|
149
|
-
mini_portile2 (2.4.0)
|
150
|
-
minitest (5.13.0)
|
151
|
-
multi_json (1.14.1)
|
152
|
-
multipart-post (2.1.1)
|
153
|
-
nio4r (2.5.2)
|
154
|
-
nokogiri (1.10.5)
|
155
|
-
mini_portile2 (~> 2.4.0)
|
156
|
-
octokit (4.14.0)
|
157
|
-
sawyer (~> 0.8.0, >= 0.5.3)
|
158
|
-
os (1.0.1)
|
159
|
-
parallel (1.18.0)
|
160
|
-
parser (2.6.5.0)
|
161
|
-
ast (~> 2.4.0)
|
162
|
-
public_suffix (4.0.1)
|
163
|
-
raabro (1.1.6)
|
164
|
-
rack (2.0.7)
|
165
|
-
rack-test (1.1.0)
|
166
|
-
rack (>= 1.0, < 3)
|
167
|
-
rails (6.0.0)
|
168
|
-
actioncable (= 6.0.0)
|
169
|
-
actionmailbox (= 6.0.0)
|
170
|
-
actionmailer (= 6.0.0)
|
171
|
-
actionpack (= 6.0.0)
|
172
|
-
actiontext (= 6.0.0)
|
173
|
-
actionview (= 6.0.0)
|
174
|
-
activejob (= 6.0.0)
|
175
|
-
activemodel (= 6.0.0)
|
176
|
-
activerecord (= 6.0.0)
|
177
|
-
activestorage (= 6.0.0)
|
178
|
-
activesupport (= 6.0.0)
|
179
|
-
bundler (>= 1.3.0)
|
180
|
-
railties (= 6.0.0)
|
181
|
-
sprockets-rails (>= 2.0.0)
|
182
|
-
rails-dom-testing (2.0.3)
|
183
|
-
activesupport (>= 4.2.0)
|
184
|
-
nokogiri (>= 1.6)
|
185
|
-
rails-html-sanitizer (1.3.0)
|
186
|
-
loofah (~> 2.3)
|
187
|
-
railties (6.0.0)
|
188
|
-
actionpack (= 6.0.0)
|
189
|
-
activesupport (= 6.0.0)
|
190
|
-
method_source
|
191
|
-
rake (>= 0.8.7)
|
192
|
-
thor (>= 0.20.3, < 2.0)
|
193
|
-
rainbow (3.0.0)
|
194
|
-
rake (10.5.0)
|
195
|
-
redis (4.1.3)
|
196
|
-
retriable (3.1.2)
|
197
|
-
rly (0.2.3)
|
198
|
-
rspec (3.9.0)
|
199
|
-
rspec-core (~> 3.9.0)
|
200
|
-
rspec-expectations (~> 3.9.0)
|
201
|
-
rspec-mocks (~> 3.9.0)
|
202
|
-
rspec-core (3.9.0)
|
203
|
-
rspec-support (~> 3.9.0)
|
204
|
-
rspec-expectations (3.9.0)
|
205
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
206
|
-
rspec-support (~> 3.9.0)
|
207
|
-
rspec-mocks (3.9.0)
|
208
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
209
|
-
rspec-support (~> 3.9.0)
|
210
|
-
rspec-rails (3.9.0)
|
211
|
-
actionpack (>= 3.0)
|
212
|
-
activesupport (>= 3.0)
|
213
|
-
railties (>= 3.0)
|
214
|
-
rspec-core (~> 3.9.0)
|
215
|
-
rspec-expectations (~> 3.9.0)
|
216
|
-
rspec-mocks (~> 3.9.0)
|
217
|
-
rspec-support (~> 3.9.0)
|
218
|
-
rspec-support (3.9.0)
|
219
|
-
rubocop (0.76.0)
|
220
|
-
jaro_winkler (~> 1.5.1)
|
221
|
-
parallel (~> 1.10)
|
222
|
-
parser (>= 2.6)
|
223
|
-
rainbow (>= 2.2.2, < 4.0)
|
224
|
-
ruby-progressbar (~> 1.7)
|
225
|
-
unicode-display_width (>= 1.4.0, < 1.7)
|
226
|
-
rubocop-rspec (1.36.0)
|
227
|
-
rubocop (>= 0.68.1)
|
228
|
-
ruby-progressbar (1.10.1)
|
229
|
-
safe_yaml (1.0.5)
|
230
|
-
sawyer (0.8.2)
|
231
|
-
addressable (>= 2.3.5)
|
232
|
-
faraday (> 0.8, < 2.0)
|
233
|
-
signet (0.12.0)
|
234
|
-
addressable (~> 2.3)
|
235
|
-
faraday (~> 0.9)
|
236
|
-
jwt (>= 1.5, < 3.0)
|
237
|
-
multi_json (~> 1.10)
|
238
|
-
sprockets (4.0.0)
|
239
|
-
concurrent-ruby (~> 1.0)
|
240
|
-
rack (> 1, < 3)
|
241
|
-
sprockets-rails (3.2.1)
|
242
|
-
actionpack (>= 4.0)
|
243
|
-
activesupport (>= 4.0)
|
244
|
-
sprockets (>= 3.0.0)
|
245
|
-
sqlite3 (1.4.0)
|
246
|
-
thor (0.20.3)
|
247
|
-
thread_safe (0.3.6)
|
248
|
-
timecop (0.9.1)
|
249
|
-
tzinfo (1.2.5)
|
250
|
-
thread_safe (~> 0.1)
|
251
|
-
unicode-display_width (1.6.0)
|
252
|
-
webmock (3.7.6)
|
253
|
-
addressable (>= 2.3.6)
|
254
|
-
crack (>= 0.3.2)
|
255
|
-
hashdiff (>= 0.4.0, < 2.0.0)
|
256
|
-
websocket-driver (0.7.1)
|
257
|
-
websocket-extensions (>= 0.1.0)
|
258
|
-
websocket-extensions (0.1.4)
|
259
|
-
zeitwerk (2.2.1)
|
260
|
-
|
261
|
-
PLATFORMS
|
262
|
-
ruby
|
263
|
-
|
264
|
-
DEPENDENCIES
|
265
|
-
appraisal
|
266
|
-
bundler (~> 2.0)
|
267
|
-
cloudtasker!
|
268
|
-
github_changelog_generator
|
269
|
-
rails
|
270
|
-
rake (~> 10.0)
|
271
|
-
rspec (~> 3.0)
|
272
|
-
rspec-rails
|
273
|
-
rubocop (= 0.76.0)
|
274
|
-
rubocop-rspec
|
275
|
-
sqlite3
|
276
|
-
timecop
|
277
|
-
webmock
|
278
|
-
|
279
|
-
BUNDLED WITH
|
280
|
-
2.0.2
|