From 10719b3f7db3cc84dd61f7941ac974aa664dac81 Mon Sep 17 00:00:00 2001 From: Mitchell Henke Date: Thu, 28 Sep 2023 08:55:57 -0500 Subject: [PATCH] Queue KMS Migration Jobs as long running changelog: Internal, Background Jobs, Queue KMS Migration Jobs as long running --- app/jobs/multi_region_kms_migration/profile_migration_job.rb | 2 ++ app/jobs/multi_region_kms_migration/user_migration_job.rb | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/jobs/multi_region_kms_migration/profile_migration_job.rb b/app/jobs/multi_region_kms_migration/profile_migration_job.rb index 9e004b1f8d3..0e79aa2fedc 100644 --- a/app/jobs/multi_region_kms_migration/profile_migration_job.rb +++ b/app/jobs/multi_region_kms_migration/profile_migration_job.rb @@ -1,5 +1,7 @@ module MultiRegionKmsMigration class ProfileMigrationJob < ApplicationJob + queue_as :long_running + MAXIMUM_ERROR_TOLERANCE = 10 include ::NewRelic::Agent::MethodTracer diff --git a/app/jobs/multi_region_kms_migration/user_migration_job.rb b/app/jobs/multi_region_kms_migration/user_migration_job.rb index 8314e43dc3e..0a8a0b67452 100644 --- a/app/jobs/multi_region_kms_migration/user_migration_job.rb +++ b/app/jobs/multi_region_kms_migration/user_migration_job.rb @@ -1,5 +1,7 @@ module MultiRegionKmsMigration class UserMigrationJob < ApplicationJob + queue_as :long_running + MAXIMUM_ERROR_TOLERANCE = 10 include ::NewRelic::Agent::MethodTracer