Sha256: 46c9e4d96caa2398a7c6dcb2ea2bdc06a43d6bfe45e2ab4f0c6d109f89d96a51

Contents?: true

Size: 355 Bytes

Versions: 8

Compression:

Stored size: 355 Bytes

Contents

module Shipit
  class RefreshCheckRunsJob < BackgroundJob
    queue_as :default

    def perform(params)
      if params[:commit_id]
        Commit.find(params[:commit_id]).refresh_check_runs!
      else
        stack = Stack.find(params[:stack_id])
        stack.commits.order(id: :desc).limit(30).each(&:refresh_check_runs!)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
shipit-engine-0.31.0 app/jobs/shipit/refresh_check_runs_job.rb
shipit-engine-0.30.0 app/jobs/shipit/refresh_check_runs_job.rb
shipit-engine-0.29.0 app/jobs/shipit/refresh_check_runs_job.rb
shipit-engine-0.28.1 app/jobs/shipit/refresh_check_runs_job.rb
shipit-engine-0.28.0 app/jobs/shipit/refresh_check_runs_job.rb
shipit-engine-0.27.1 app/jobs/shipit/refresh_check_runs_job.rb
shipit-engine-0.27.0 app/jobs/shipit/refresh_check_runs_job.rb
shipit-engine-0.26.0 app/jobs/shipit/refresh_check_runs_job.rb