Sha256: c87cf269ee55d0fae12d0c1e3b6370fa4d8a727045ea8768dceb30ae20d9ad2f

Contents?: true

Size: 424 Bytes

Versions: 51

Compression:

Stored size: 424 Bytes

Contents

require_relative './base_job'

module CanvasSync
  module JobBatches
    class ConcurrentBatchJob < BaseJob
      def perform(sub_jobs, context: nil)
        Batch.new.tap do |b|
          b.description = "Concurrent Batch Root"
          b.context = context
          b.jobs do
            sub_jobs.each do |j|
              ChainBuilder.enqueue_job(j)
            end
          end
        end
      end
    end
  end
end

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
canvas_sync-0.17.26.beta1 lib/canvas_sync/job_batches/jobs/concurrent_batch_job.rb
canvas_sync-0.17.24 lib/canvas_sync/job_batches/jobs/concurrent_batch_job.rb
canvas_sync-0.17.23 lib/canvas_sync/job_batches/jobs/concurrent_batch_job.rb
canvas_sync-0.17.23.beta8 lib/canvas_sync/job_batches/jobs/concurrent_batch_job.rb
canvas_sync-0.17.23.beta7 lib/canvas_sync/job_batches/jobs/concurrent_batch_job.rb
canvas_sync-0.17.23.beta6 lib/canvas_sync/job_batches/jobs/concurrent_batch_job.rb
canvas_sync-0.17.23.beta5 lib/canvas_sync/job_batches/jobs/concurrent_batch_job.rb
canvas_sync-0.17.23.beta4 lib/canvas_sync/job_batches/jobs/concurrent_batch_job.rb
canvas_sync-0.17.23.beta2 lib/canvas_sync/job_batches/jobs/concurrent_batch_job.rb
canvas_sync-0.17.23.beta1 lib/canvas_sync/job_batches/jobs/concurrent_batch_job.rb
canvas_sync-0.17.20 lib/canvas_sync/job_batches/jobs/concurrent_batch_job.rb
canvas_sync-0.17.19 lib/canvas_sync/job_batches/jobs/concurrent_batch_job.rb
canvas_sync-0.17.18 lib/canvas_sync/job_batches/jobs/concurrent_batch_job.rb
canvas_sync-0.17.17.beta1 lib/canvas_sync/job_batches/jobs/concurrent_batch_job.rb
canvas_sync-0.17.16 lib/canvas_sync/job_batches/jobs/concurrent_batch_job.rb
canvas_sync-0.17.15 lib/canvas_sync/job_batches/jobs/concurrent_batch_job.rb
canvas_sync-0.17.14 lib/canvas_sync/job_batches/jobs/concurrent_batch_job.rb
canvas_sync-0.17.13 lib/canvas_sync/job_batches/jobs/concurrent_batch_job.rb
canvas_sync-0.17.12 lib/canvas_sync/job_batches/jobs/concurrent_batch_job.rb
canvas_sync-0.17.10.beta2 lib/canvas_sync/job_batches/jobs/concurrent_batch_job.rb