Sha256: 74c460cc2f1a1f190a93cf28f85480ce39576cf66e32b194019bb1f4a154e1bc

Contents?: true

Size: 439 Bytes

Versions: 12

Compression:

Stored size: 439 Bytes

Contents

module RocketJob
  module Jobs
    class PerformanceJob < RocketJob::Job
      include RocketJob::Batch

      # Define the job's default attributes
      self.description         = "Performance Test"
      self.priority            = 5
      self.slice_size          = 100
      self.destroy_on_complete = false

      # No operation, just return the supplied line (record)
      def perform(line)
        line
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rocketjob-5.4.1 lib/rocket_job/jobs/performance_job.rb
rocketjob-5.4.0 lib/rocket_job/jobs/performance_job.rb
rocketjob-5.4.0.beta2 lib/rocket_job/jobs/performance_job.rb
rocketjob-5.4.0.beta1 lib/rocket_job/jobs/performance_job.rb
rocketjob-5.3.3 lib/rocket_job/jobs/performance_job.rb
rocketjob-5.3.2 lib/rocket_job/jobs/performance_job.rb
rocketjob-5.3.1 lib/rocket_job/jobs/performance_job.rb
rocketjob-5.3.0 lib/rocket_job/jobs/performance_job.rb
rocketjob-5.2.0 lib/rocket_job/jobs/performance_job.rb
rocketjob-5.2.0.beta3 lib/rocket_job/jobs/performance_job.rb
rocketjob-5.2.0.beta2 lib/rocket_job/jobs/performance_job.rb
rocketjob-5.2.0.beta1 lib/rocket_job/jobs/performance_job.rb