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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
623accf9
Commit
623accf9
authored
Jun 03, 2018
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add type_build to ScheduleToArchiveLegacyTraces::Build
parent
bcd664f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
db/post_migrate/20180529152628_schedule_to_archive_legacy_traces.rb
...grate/20180529152628_schedule_to_archive_legacy_traces.rb
+3
-1
No files found.
db/post_migrate/20180529152628_schedule_to_archive_legacy_traces.rb
View file @
623accf9
...
...
@@ -12,6 +12,8 @@ class ScheduleToArchiveLegacyTraces < ActiveRecord::Migration
self
.
table_name
=
'ci_builds'
self
.
inheritance_column
=
:_type_disabled
# Disable STI
scope
:type_build
,
->
{
where
(
type:
'Ci::Build'
)
}
scope
:finished
,
->
{
where
(
status:
[
:success
,
:failed
,
:canceled
])
}
scope
:without_archived_trace
,
->
do
...
...
@@ -21,7 +23,7 @@ class ScheduleToArchiveLegacyTraces < ActiveRecord::Migration
def
up
queue_background_migration_jobs_by_range_at_intervals
(
::
ScheduleToArchiveLegacyTraces
::
Build
.
finished
.
without_archived_trace
,
::
ScheduleToArchiveLegacyTraces
::
Build
.
type_build
.
finished
.
without_archived_trace
,
BACKGROUND_MIGRATION_CLASS
,
5
.
minutes
,
batch_size:
BATCH_SIZE
)
...
...
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