uffizzi_core 2.0.15 → 2.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/jobs/uffizzi_core/config_file/apply_job.rb +7 -0
- data/app/jobs/uffizzi_core/deployment/create_credential_job.rb +7 -0
- data/app/jobs/uffizzi_core/deployment/deploy_containers_job.rb +7 -0
- data/app/jobs/uffizzi_core/deployment/manage_deploy_activity_item_job.rb +11 -2
- data/app/jobs/uffizzi_core/deployment/update_credential_job.rb +7 -0
- data/lib/uffizzi_core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 725cca20ca80112e168ba374f53dc0fa5cb48ed92339996405610fad6d37e931
|
4
|
+
data.tar.gz: 44034045e9b25197d558202fb336ff7faab8b9f7ac02cea97bbbcbb5cfac711c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c417dc4df5d3842a73941775b4f6267bfd41ed19f29db0a5b58496346ef77237a134d3eaf515f6f6cef975c29f0b962cbba82d1e293af36625ccb0e1a02fdda
|
7
|
+
data.tar.gz: 254aff6198f4136c367fcc1e64a58fdcc920bf009d3a3f842ceddf5d42b362eebf9f993c5d261649e60e3d3c6c0394f29e2a2bee0dfc4c2787eba4009dea1409
|
@@ -8,6 +8,13 @@ class UffizziCore::ConfigFile::ApplyJob < UffizziCore::ApplicationJob
|
|
8
8
|
when UffizziCore::DeploymentNotFoundError
|
9
9
|
Rails.logger.info("DEPLOYMENT_PROCESS ApplyJob retry deployment_id=#{exception.deployment_id} count=#{count}")
|
10
10
|
Settings.controller.resource_create_retry_time
|
11
|
+
else
|
12
|
+
if [Settings.default_job_retry_count, Settings.controller.resource_create_retry_count].include?(count)
|
13
|
+
Sentry.capture_exception(exception)
|
14
|
+
:kill
|
15
|
+
else
|
16
|
+
Settings.controller.resource_create_retry_time
|
17
|
+
end
|
11
18
|
end
|
12
19
|
end
|
13
20
|
|
@@ -8,6 +8,13 @@ class UffizziCore::Deployment::CreateCredentialJob < UffizziCore::ApplicationJob
|
|
8
8
|
when UffizziCore::DeploymentNotFoundError
|
9
9
|
Rails.logger.info("DEPLOYMENT_PROCESS CreateCredentialJob retry deployment_id=#{exception.deployment_id} count=#{count}")
|
10
10
|
Settings.controller.resource_create_retry_time
|
11
|
+
else
|
12
|
+
if [Settings.default_job_retry_count, Settings.controller.resource_create_retry_count].include?(count)
|
13
|
+
Sentry.capture_exception(exception)
|
14
|
+
:kill
|
15
|
+
else
|
16
|
+
Settings.controller.resource_create_retry_time
|
17
|
+
end
|
11
18
|
end
|
12
19
|
end
|
13
20
|
|
@@ -8,6 +8,13 @@ class UffizziCore::Deployment::DeployContainersJob < UffizziCore::ApplicationJob
|
|
8
8
|
when UffizziCore::DeploymentNotFoundError
|
9
9
|
Rails.logger.info("DEPLOYMENT_PROCESS DeployContainersJob retry deployment_id=#{exception.deployment_id} count=#{count}")
|
10
10
|
Settings.controller.resource_create_retry_time
|
11
|
+
else
|
12
|
+
if [Settings.default_job_retry_count, Settings.controller.resource_create_retry_count].include?(count)
|
13
|
+
Sentry.capture_exception(exception)
|
14
|
+
:kill
|
15
|
+
else
|
16
|
+
Settings.controller.resource_create_retry_time
|
17
|
+
end
|
11
18
|
end
|
12
19
|
end
|
13
20
|
|
@@ -1,13 +1,22 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
class UffizziCore::Deployment::ManageDeployActivityItemJob < UffizziCore::ApplicationJob
|
4
|
-
sidekiq_options queue: :deployments, retry:
|
4
|
+
sidekiq_options queue: :deployments, retry: Settings.default_job_retry_count
|
5
5
|
|
6
6
|
sidekiq_retry_in do |count, exception|
|
7
7
|
case exception
|
8
8
|
when UffizziCore::Deployment::ImagePullError
|
9
9
|
Rails.logger.info("DEPLOYMENT_PROCESS ManageDeployActivityItemJob retry deployment_id=#{exception.deployment_id} count=#{count}")
|
10
|
-
|
10
|
+
Settings.controller.resource_create_retry_time
|
11
|
+
when ActiveRecord::RecordNotFound
|
12
|
+
:kill if exception.model.constantize == UffizziCore::ActivityItem
|
13
|
+
else
|
14
|
+
if count == Settings.default_job_retry_count
|
15
|
+
Sentry.capture_exception(exception)
|
16
|
+
:kill
|
17
|
+
else
|
18
|
+
Settings.controller.resource_create_retry_time
|
19
|
+
end
|
11
20
|
end
|
12
21
|
end
|
13
22
|
|
@@ -8,6 +8,13 @@ class UffizziCore::Deployment::UpdateCredentialJob < UffizziCore::ApplicationJob
|
|
8
8
|
when UffizziCore::DeploymentNotFoundError
|
9
9
|
Rails.logger.info("DEPLOYMENT_PROCESS UpdateCredentialJob retry deployment_id=#{exception.deployment_id} count=#{count}")
|
10
10
|
Settings.controller.resource_update_retry_time
|
11
|
+
else
|
12
|
+
if [Settings.default_job_retry_count, Settings.controller.resource_update_retry_count].include?(count)
|
13
|
+
Sentry.capture_exception(exception)
|
14
|
+
:kill
|
15
|
+
else
|
16
|
+
Settings.controller.resource_create_retry_time
|
17
|
+
end
|
11
18
|
end
|
12
19
|
end
|
13
20
|
|
data/lib/uffizzi_core/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uffizzi_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Thurman
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-12-
|
12
|
+
date: 2022-12-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: aasm
|