Disable statement timeout when removing redundant stages

This commit is contained in:
Grzegorz Bizon 2018-02-07 13:09:53 +01:00
parent 2cce501f45
commit 394c1c6588

View file

@ -38,6 +38,8 @@ class RemoveRedundantPipelineStages < ActiveRecord::Migration
end
def remove_redundant_pipeline_stages!
disable_statement_timeout
redundant_stages_ids = <<~SQL
SELECT id FROM ci_stages WHERE (pipeline_id, name) IN (
SELECT pipeline_id, name FROM ci_stages