Sha256: 8b181066214b229f68849f1ebb8f6d75513b359bc21ad64b06aea37d80b053b9

Contents?: true

Size: 336 Bytes

Versions: 8

Compression:

Stored size: 336 Bytes

Contents

# frozen_string_literal: true
module Shipit
  class ContinuousDeliveryJob < BackgroundJob
    include BackgroundJob::Unique

    queue_as :deploys
    on_duplicate :drop

    def perform(stack)
      return unless stack.continuous_deployment?
      return if stack.active_task?
      stack.trigger_continuous_delivery
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
shipit-engine-0.37.0 app/jobs/shipit/continuous_delivery_job.rb
shipit-engine-0.36.1 app/jobs/shipit/continuous_delivery_job.rb
shipit-engine-0.36.0 app/jobs/shipit/continuous_delivery_job.rb
shipit-engine-0.35.1 app/jobs/shipit/continuous_delivery_job.rb
shipit-engine-0.35.0 app/jobs/shipit/continuous_delivery_job.rb
shipit-engine-0.34.0 app/jobs/shipit/continuous_delivery_job.rb
shipit-engine-0.33.0 app/jobs/shipit/continuous_delivery_job.rb
shipit-engine-0.32.0 app/jobs/shipit/continuous_delivery_job.rb