cloudtasker 0.10.2 → 0.11.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +5 -1
- data/CHANGELOG.md +0 -16
- data/app/controllers/cloudtasker/application_controller.rb +8 -0
- data/app/controllers/cloudtasker/worker_controller.rb +16 -8
- data/gemfiles/google_cloud_tasks_1.0.gemfile.lock +147 -198
- data/gemfiles/google_cloud_tasks_1.1.gemfile.lock +147 -198
- data/gemfiles/google_cloud_tasks_1.2.gemfile.lock +147 -198
- data/gemfiles/google_cloud_tasks_1.3.gemfile.lock +147 -198
- data/gemfiles/rails_5.2.gemfile.lock +82 -134
- data/gemfiles/rails_6.0.gemfile.lock +83 -135
- data/lib/cloudtasker/missing_worker_arguments_error.rb +6 -0
- data/lib/cloudtasker/version.rb +1 -1
- data/lib/cloudtasker/worker.rb +7 -0
- data/lib/cloudtasker/worker_handler.rb +1 -1
- data/lib/cloudtasker.rb +1 -1
- metadata +9 -7
@@ -85,7 +85,7 @@ module Cloudtasker
|
|
85
85
|
redis.expire(args_payload_key, ARGS_PAYLOAD_CLEANUP_TTL) if args_payload_key && !worker.job_reenqueued
|
86
86
|
|
87
87
|
resp
|
88
|
-
rescue DeadWorkerError => e
|
88
|
+
rescue DeadWorkerError, MissingWorkerArgumentsError => e
|
89
89
|
# Delete stored args payload if job is dead
|
90
90
|
redis.expire(args_payload_key, ARGS_PAYLOAD_CLEANUP_TTL) if args_payload_key
|
91
91
|
raise(e)
|
data/lib/cloudtasker.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'active_support/core_ext/string/inflections'
|
4
|
-
require 'active_support/core_ext/object/try'
|
5
4
|
|
6
5
|
require 'cloudtasker/version'
|
7
6
|
require 'cloudtasker/config'
|
@@ -9,6 +8,7 @@ require 'cloudtasker/config'
|
|
9
8
|
require 'cloudtasker/authentication_error'
|
10
9
|
require 'cloudtasker/dead_worker_error'
|
11
10
|
require 'cloudtasker/invalid_worker_error'
|
11
|
+
require 'cloudtasker/missing_worker_arguments_error'
|
12
12
|
require 'cloudtasker/max_task_size_exceeded_error'
|
13
13
|
|
14
14
|
require 'cloudtasker/middleware/chain'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudtasker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arnaud Lachaume
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -310,6 +310,7 @@ files:
|
|
310
310
|
- README.md
|
311
311
|
- Rakefile
|
312
312
|
- _config.yml
|
313
|
+
- app/controllers/cloudtasker/application_controller.rb
|
313
314
|
- app/controllers/cloudtasker/worker_controller.rb
|
314
315
|
- bin/console
|
315
316
|
- bin/setup
|
@@ -369,6 +370,7 @@ files:
|
|
369
370
|
- lib/cloudtasker/max_task_size_exceeded_error.rb
|
370
371
|
- lib/cloudtasker/meta_store.rb
|
371
372
|
- lib/cloudtasker/middleware/chain.rb
|
373
|
+
- lib/cloudtasker/missing_worker_arguments_error.rb
|
372
374
|
- lib/cloudtasker/redis_client.rb
|
373
375
|
- lib/cloudtasker/testing.rb
|
374
376
|
- lib/cloudtasker/unique_job.rb
|
@@ -399,7 +401,7 @@ metadata:
|
|
399
401
|
homepage_uri: https://github.com/keypup-io/cloudtasker
|
400
402
|
source_code_uri: https://github.com/keypup-io/cloudtasker
|
401
403
|
changelog_uri: https://github.com/keypup-io/cloudtasker/master/tree/CHANGELOG.md
|
402
|
-
post_install_message:
|
404
|
+
post_install_message:
|
403
405
|
rdoc_options: []
|
404
406
|
require_paths:
|
405
407
|
- lib
|
@@ -410,12 +412,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
410
412
|
version: '0'
|
411
413
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
412
414
|
requirements:
|
413
|
-
- - "
|
415
|
+
- - ">"
|
414
416
|
- !ruby/object:Gem::Version
|
415
|
-
version:
|
417
|
+
version: 1.3.1
|
416
418
|
requirements: []
|
417
419
|
rubygems_version: 3.0.0
|
418
|
-
signing_key:
|
420
|
+
signing_key:
|
419
421
|
specification_version: 4
|
420
422
|
summary: Background jobs for Ruby using Google Cloud Tasks (beta)
|
421
423
|
test_files: []
|