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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 28934eb7317d49a31d36b7563e17536b0cb9ce375a7c92d4ef7102f2eb3f998f
4
- data.tar.gz: f86564b713075d3762622329be0d96333cc6a8a5f7c1f9352a06f26d746c89d4
3
+ metadata.gz: 725cca20ca80112e168ba374f53dc0fa5cb48ed92339996405610fad6d37e931
4
+ data.tar.gz: 44034045e9b25197d558202fb336ff7faab8b9f7ac02cea97bbbcbb5cfac711c
5
5
  SHA512:
6
- metadata.gz: 21f814b2a44d75f89128e33fb067fa56c7f83fda3a5ca7938fc026108b95d6056d405cf38da15730d593756b1479cd297c6c5f66865eb85c8b5c5bbae2a4b23f
7
- data.tar.gz: 3cc681f0cde118c45ebf0b07d240f70cb8690a4a4ed399421d1d07f6524fa1de7b214a3ca97a39950584c69bafe0b7166c8482ced38b065fc79441f3c72de83a
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: 3
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
- 15.seconds
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UffizziCore
4
- VERSION = '2.0.15'
4
+ VERSION = '2.0.16'
5
5
  end
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.15
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-07 00:00:00.000000000 Z
12
+ date: 2022-12-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aasm