Sha256: f9369e1cff556cac09d7e1f4f721fa6eab75de0c4f4830bc11c0de0e882e551c

Contents?: true

Size: 409 Bytes

Versions: 2

Compression:

Stored size: 409 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?

      # checks if there are any tasks running, including concurrent tasks
      return if stack.occupied?

      stack.trigger_continuous_delivery
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
shipit-engine-0.39.0 app/jobs/shipit/continuous_delivery_job.rb
shipit-engine-0.38.0 app/jobs/shipit/continuous_delivery_job.rb