Commit 395fa5e6 authored by Mehmet Emin INAC's avatar Mehmet Emin INAC

Increase the delay interval to 3 minutes

parent 8e9384de
...@@ -5,7 +5,7 @@ class SchedulePopulateMissingDismissalInformationForVulnerabilities < ActiveReco ...@@ -5,7 +5,7 @@ class SchedulePopulateMissingDismissalInformationForVulnerabilities < ActiveReco
DOWNTIME = false DOWNTIME = false
BATCH_SIZE = 1_000 BATCH_SIZE = 1_000
DELAY_INTERVAL = 1.minute.to_i DELAY_INTERVAL = 3.minutes.to_i
MIGRATION_CLASS = 'PopulateMissingVulnerabilityDismissalInformation' MIGRATION_CLASS = 'PopulateMissingVulnerabilityDismissalInformation'
disable_ddl_transaction! disable_ddl_transaction!
......
...@@ -30,8 +30,8 @@ RSpec.describe SchedulePopulateMissingDismissalInformationForVulnerabilities do ...@@ -30,8 +30,8 @@ RSpec.describe SchedulePopulateMissingDismissalInformationForVulnerabilities do
migrate! migrate!
expect(BackgroundMigrationWorker.jobs.size).to be(3) expect(BackgroundMigrationWorker.jobs.size).to be(3)
expect(described_class::MIGRATION_CLASS).to be_scheduled_delayed_migration(1.minute, vulnerability_1.id) expect(described_class::MIGRATION_CLASS).to be_scheduled_delayed_migration(3.minutes, vulnerability_1.id)
expect(described_class::MIGRATION_CLASS).to be_scheduled_delayed_migration(2.minutes, vulnerability_2.id) expect(described_class::MIGRATION_CLASS).to be_scheduled_delayed_migration(6.minutes, vulnerability_2.id)
expect(described_class::MIGRATION_CLASS).to be_scheduled_delayed_migration(3.minutes, vulnerability_3.id) expect(described_class::MIGRATION_CLASS).to be_scheduled_delayed_migration(9.minutes, vulnerability_3.id)
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment