zuora_connect 2.0.60 → 2.1.1
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/lib/resque/plugins/app_instance_job.rb +10 -6
- data/lib/zuora_connect/version.rb +1 -1
- metadata +27 -27
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0342c5ac7396b4e8ba75aff8dbab5d579fa6d0ad04a421b7d1d809ab3abbd90a
|
4
|
+
data.tar.gz: 70f7277a93fec8e481f63e56f85e466b5e0b4d1307e2413e4f8da9497e980be2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb6497a343dde2b4a3edfe470c8e5a44eb37ff99b75ed434138c280e8ac25bf36806d58fbb477772182596917f1c37c0e237bd55e88f646e149743477fba2f15
|
7
|
+
data.tar.gz: f0b1f8b6f647f204ce8c4bfed7a8e77b49f3aada0faf6a0c31fc47675f5bfca67feb464692006bcb490977a577d1d5a3feab53886815f4c6472023e9ade6823b
|
@@ -12,14 +12,14 @@ module Resque
|
|
12
12
|
when "Hash"
|
13
13
|
data = args.merge({:worker_class => self.to_s})
|
14
14
|
end
|
15
|
-
if Rails.logger.is_a?(Ougai::Logger)
|
15
|
+
if Rails.logger.is_a?(Ougai::Logger)
|
16
16
|
Rails.logger.with_fields = {job: data, trace_id: SecureRandom.uuid, name: "RailsWorker"}
|
17
17
|
end
|
18
18
|
|
19
19
|
begin
|
20
|
-
connection_count ||= 0
|
20
|
+
connection_count ||= 0
|
21
21
|
@appinstance = ZuoraConnect::AppInstance.find(args['app_instance_id'].to_i)
|
22
|
-
|
22
|
+
job_start_log(args)
|
23
23
|
|
24
24
|
@appinstance.new_session(holding_pattern: true)
|
25
25
|
rescue ActiveRecord::RecordNotFound => exception
|
@@ -52,12 +52,12 @@ module Resque
|
|
52
52
|
return
|
53
53
|
rescue ZuoraConnect::Exceptions::ConnectCommunicationError => exception
|
54
54
|
Rails.logger.warn("Enqueue Job Again ~ 2 mins", exception)
|
55
|
-
@appinstance.queue_pause(time: 2.minutes.to_i)
|
55
|
+
@appinstance.queue_pause(time: 2.minutes.to_i)
|
56
56
|
Resque.enqueue_to(self.job.queue, self.job.payload['class'], args)
|
57
57
|
return
|
58
58
|
rescue Net::ReadTimeout, Net::OpenTimeout, Errno::ECONNRESET, Errno::ECONNREFUSED, SocketError => exception
|
59
59
|
Rails.logger.warn("Enqueue Job Again ~ 2 mins", exception)
|
60
|
-
@appinstance.queue_pause(time: 2.minutes.to_i)
|
60
|
+
@appinstance.queue_pause(time: 2.minutes.to_i)
|
61
61
|
Resque.enqueue_to(self.job.queue, self.job.payload['class'], args)
|
62
62
|
return
|
63
63
|
end
|
@@ -68,6 +68,10 @@ module Resque
|
|
68
68
|
@appinstance.cache_app_instance if defined?(@appinstance)
|
69
69
|
Rails.logger.flush if Rails.logger.methods.include?(:flush)
|
70
70
|
end
|
71
|
+
|
72
|
+
def job_start_log(args)
|
73
|
+
Rails.logger.info("Starting job")
|
74
|
+
end
|
71
75
|
end
|
72
76
|
end
|
73
|
-
end
|
77
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zuora_connect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Connect Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: apartment
|
@@ -438,44 +438,44 @@ signing_key:
|
|
438
438
|
specification_version: 4
|
439
439
|
summary: Summary of Connect.
|
440
440
|
test_files:
|
441
|
-
- test/integration/navigation_test.rb
|
442
|
-
- test/controllers/zuora_connect/api/v1/app_instance_controller_test.rb
|
443
441
|
- test/fixtures/zuora_connect/app_instances.yml
|
444
|
-
- test/lib/generators/zuora_connect/datatable_generator_test.rb
|
445
442
|
- test/models/zuora_connect/app_instance_test.rb
|
443
|
+
- test/integration/navigation_test.rb
|
444
|
+
- test/controllers/zuora_connect/api/v1/app_instance_controller_test.rb
|
446
445
|
- test/zuora_connect_test.rb
|
447
|
-
- test/
|
448
|
-
- test/dummy/config.ru
|
449
|
-
- test/dummy/public/422.html
|
450
|
-
- test/dummy/public/404.html
|
446
|
+
- test/lib/generators/zuora_connect/datatable_generator_test.rb
|
451
447
|
- test/dummy/public/500.html
|
448
|
+
- test/dummy/public/404.html
|
452
449
|
- test/dummy/public/favicon.ico
|
453
|
-
- test/dummy/
|
454
|
-
- test/dummy/
|
455
|
-
- test/dummy/
|
456
|
-
- test/dummy/app/assets/javascripts/application.js
|
457
|
-
- test/dummy/app/assets/stylesheets/application.css
|
458
|
-
- test/dummy/README.rdoc
|
459
|
-
- test/dummy/bin/rails
|
460
|
-
- test/dummy/bin/rake
|
461
|
-
- test/dummy/bin/bundle
|
462
|
-
- test/dummy/bin/setup
|
450
|
+
- test/dummy/public/422.html
|
451
|
+
- test/dummy/Rakefile
|
452
|
+
- test/dummy/config.ru
|
463
453
|
- test/dummy/config/secrets.yml
|
464
454
|
- test/dummy/config/boot.rb
|
465
|
-
- test/dummy/config/
|
466
|
-
- test/dummy/config/initializers/filter_parameter_logging.rb
|
455
|
+
- test/dummy/config/application.rb
|
467
456
|
- test/dummy/config/initializers/session_store.rb
|
468
|
-
- test/dummy/config/initializers/inflections.rb
|
469
|
-
- test/dummy/config/initializers/cookies_serializer.rb
|
470
457
|
- test/dummy/config/initializers/assets.rb
|
471
458
|
- test/dummy/config/initializers/wrap_parameters.rb
|
459
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
472
460
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
473
|
-
- test/dummy/config/
|
474
|
-
- test/dummy/config/
|
475
|
-
- test/dummy/config/
|
461
|
+
- test/dummy/config/initializers/mime_types.rb
|
462
|
+
- test/dummy/config/initializers/inflections.rb
|
463
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
476
464
|
- test/dummy/config/routes.rb
|
465
|
+
- test/dummy/config/database.yml
|
466
|
+
- test/dummy/config/environments/test.rb
|
477
467
|
- test/dummy/config/environments/production.rb
|
478
468
|
- test/dummy/config/environments/development.rb
|
479
|
-
- test/dummy/config/
|
469
|
+
- test/dummy/config/environment.rb
|
480
470
|
- test/dummy/config/locales/en.yml
|
471
|
+
- test/dummy/README.rdoc
|
472
|
+
- test/dummy/bin/rake
|
473
|
+
- test/dummy/bin/setup
|
474
|
+
- test/dummy/bin/rails
|
475
|
+
- test/dummy/bin/bundle
|
476
|
+
- test/dummy/app/views/layouts/application.html.erb
|
477
|
+
- test/dummy/app/assets/javascripts/application.js
|
478
|
+
- test/dummy/app/assets/stylesheets/application.css
|
479
|
+
- test/dummy/app/helpers/application_helper.rb
|
480
|
+
- test/dummy/app/controllers/application_controller.rb
|
481
481
|
- test/test_helper.rb
|