BigW Consortium Gitlab

20170822101017_migrate_pipeline_sidekiq_queues.rb 526 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
class MigratePipelineSidekiqQueues < ActiveRecord::Migration
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  def up
    sidekiq_queue_migrate 'build', to: 'pipeline_default'
    sidekiq_queue_migrate 'pipeline', to: 'pipeline_default'
  end

  def down
    sidekiq_queue_migrate 'pipeline_default', to: 'pipeline'
13 14 15
    sidekiq_queue_migrate 'pipeline_processing', to: 'pipeline'
    sidekiq_queue_migrate 'pipeline_hooks', to: 'pipeline'
    sidekiq_queue_migrate 'pipeline_cache', to: 'pipeline'
16 17
  end
end