Sha256: d6b8472fe57d7c266fc8ad7bf9795284346c0a9d55f566c953a7cab53f1fb815

Contents?: true

Size: 412 Bytes

Versions: 22

Compression:

Stored size: 412 Bytes

Contents

class ChunkRollupJob < BackgroundJob
  include BackgroundJob::Unique

  queue_as :default

  def perform(task)
    unless task.finished?
      logger.error("Task ##{task.id} is not finished (current state: #{task.status}). Aborting.")
      return
    end

    if task.rolled_up?
      logger.error("Task ##{task.id} has already been rolled up. Aborting.")
      return
    end

    task.rollup_chunks
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

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