Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/tasks
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-06-03 08:21:50 +0300
committerShinya Maeda <shinya@gitlab.com>2018-06-04 08:14:20 +0300
commit0d00d02e842a0c4b22d213e00143a08d97597000 (patch)
tree2d05a270fc7493be0afcd5374af0153624df0e6a /lib/tasks
parentb626fcc045dda7ac25b1b7d01229589d8fd00521 (diff)
Directly refer application code from migration code
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/gitlab/traces.rake4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/tasks/gitlab/traces.rake b/lib/tasks/gitlab/traces.rake
index fd2a4f2d11a..ddcca69711f 100644
--- a/lib/tasks/gitlab/traces.rake
+++ b/lib/tasks/gitlab/traces.rake
@@ -8,9 +8,7 @@ namespace :gitlab do
logger = Logger.new(STDOUT)
logger.info('Archiving legacy traces')
- Ci::Build.finished
- .where('NOT EXISTS (?)',
- Ci::JobArtifact.select(1).trace.where('ci_builds.id = ci_job_artifacts.job_id'))
+ Ci::Build.finished.without_archived_trace
.order(id: :asc)
.find_in_batches(batch_size: 1000) do |jobs|
job_ids = jobs.map { |job| [job.id] }