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.17.35 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.17.34 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.17.33 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.17.32 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.17.31 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.17.30 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.17.29 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.17.28 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.17.27 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.17.27.beta1 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb