Sha256: 1863069fa77421d8afebaceb302e64f2e2021107b3f50c5d1d0ac12c51bc2d9e

Contents?: true

Size: 385 Bytes

Versions: 10

Compression:

Stored size: 385 Bytes

Contents

# frozen_string_literal: true
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

10 entries across 10 versions & 1 rubygems

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