Sha256: 07333ac888bf194e5e53804a948c9f13a91aef1ae42dabc17586030c2afb1c44

Contents?: true

Size: 410 Bytes

Versions: 9

Compression:

Stored size: 410 Bytes

Contents

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

    queue_as :default
    on_duplicate :drop

    # We observe that some objects regularly take longer than the default 10 seconds to create, e.g. deployments
    self.timeout = 40
    self.lock_timeout = 20

    def perform(record)
      record.reload.create_on_github!
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
shipit-engine-0.39.0 app/jobs/shipit/create_on_github_job.rb
shipit-engine-0.38.0 app/jobs/shipit/create_on_github_job.rb
shipit-engine-0.37.0 app/jobs/shipit/create_on_github_job.rb
shipit-engine-0.36.1 app/jobs/shipit/create_on_github_job.rb
shipit-engine-0.36.0 app/jobs/shipit/create_on_github_job.rb
shipit-engine-0.35.1 app/jobs/shipit/create_on_github_job.rb
shipit-engine-0.35.0 app/jobs/shipit/create_on_github_job.rb
shipit-engine-0.34.0 app/jobs/shipit/create_on_github_job.rb
shipit-engine-0.33.0 app/jobs/shipit/create_on_github_job.rb