Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
395fa5e6
Commit
395fa5e6
authored
Nov 03, 2020
by
Mehmet Emin INAC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increase the delay interval to 3 minutes
parent
8e9384de
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
db/post_migrate/20201028160832_schedule_populate_missing_dismissal_information_for_vulnerabilities.rb
...late_missing_dismissal_information_for_vulnerabilities.rb
+1
-1
spec/migrations/schedule_populate_missing_dismissal_information_for_vulnerabilities_spec.rb
...missing_dismissal_information_for_vulnerabilities_spec.rb
+3
-3
No files found.
db/post_migrate/20201028160832_schedule_populate_missing_dismissal_information_for_vulnerabilities.rb
View file @
395fa5e6
...
@@ -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!
...
...
spec/migrations/schedule_populate_missing_dismissal_information_for_vulnerabilities_spec.rb
View file @
395fa5e6
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment