Sha256: 91ad9fb2ada46538b6c54b63e41c0763dd0ce5ee10367b3876e76b8ff79ed72c

Contents?: true

Size: 438 Bytes

Versions: 17

Compression:

Stored size: 438 Bytes

Contents

require_relative './base_job'

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

    def perform(sub_jobs, **kwargs)
      self.class.make_batch(sub_jobs, **kwargs)
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
canvas_sync-0.22.9 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.22.8 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.22.6 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.22.5 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.22.4 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.22.3 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.22.2 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.22.1 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.22.0 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.22.0.beta8 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.22.0.beta7 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.22.0.beta6 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.22.0.beta5 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.22.0.beta4 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.22.0.beta3 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.22.0.beta2 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb
canvas_sync-0.22.0.beta1 lib/canvas_sync/job_batches/jobs/serial_batch_job.rb