Sha256: d10d0db73fc7576192d02921f1bc05a8a7978bdf393bdc1f314c65eaddb01c8f

Contents?: true

Size: 310 Bytes

Versions: 22

Compression:

Stored size: 310 Bytes

Contents

class RefreshStatusesJob < BackgroundJob
  queue_as :default

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

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
shipit-engine-0.5.2 app/jobs/refresh_statuses_job.rb
shipit-engine-0.5.1 app/jobs/refresh_statuses_job.rb
shipit-engine-0.5.0 app/jobs/refresh_statuses_job.rb
shipit-engine-0.4.10 app/jobs/refresh_statuses_job.rb
shipit-engine-0.4.9 app/jobs/refresh_statuses_job.rb
shipit-engine-0.4.8 app/jobs/refresh_statuses_job.rb
shipit-engine-0.4.7 app/jobs/refresh_statuses_job.rb
shipit-engine-0.4.6 app/jobs/refresh_statuses_job.rb
shipit-engine-0.4.5 app/jobs/refresh_statuses_job.rb
shipit-engine-0.4.4 app/jobs/refresh_statuses_job.rb
shipit-engine-0.4.3 app/jobs/refresh_statuses_job.rb
shipit-engine-0.4.2 app/jobs/refresh_statuses_job.rb
shipit-engine-0.4.1 app/jobs/refresh_statuses_job.rb
shipit-engine-0.4.0 app/jobs/refresh_statuses_job.rb
shipit-engine-0.3.1 app/jobs/refresh_statuses_job.rb
shipit-engine-0.3.0 app/jobs/refresh_statuses_job.rb
shipit-engine-0.2.3 app/jobs/refresh_statuses_job.rb
shipit-engine-0.2.2 app/jobs/refresh_statuses_job.rb
shipit-engine-0.2.1 app/jobs/refresh_statuses_job.rb
shipit-engine-0.2.0 app/jobs/refresh_statuses_job.rb