Sha256: 9c04309cfde9d7785f2fc281a8ac8bcfb36bd7aba52cdba4f392f55892167c38

Contents?: true

Size: 504 Bytes

Versions: 30

Compression:

Stored size: 504 Bytes

Contents

require_relative './base_job'

module CanvasSync
  module JobBatches
    class SerialBatchJob < BaseJob
      def self.make_batch(sub_jobs, context: nil, &blk)
        ManagedBatchJob.make_batch(
          sub_jobs,
          ordered: true,
          concurrency: false,
          context: context,
          desc_prefix: 'SerialBatchJob',
          &blk
        )
      end

      def perform(sub_jobs, context: nil)
        self.class.make_batch(sub_jobs, context: context)
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
canvas_sync-0.18.12 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.18.10 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.18.9 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.18.8 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.18.7 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.18.6 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.18.5 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.18.3 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.18.2 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.18.1 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.18.0.beta2 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.18.0.beta1 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.17.43 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.17.42 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.17.41 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.17.40 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.17.39 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.17.38 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.17.37 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.17.36 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb