Sha256: ee68fbeac1a4424f49da582112e1c70ccf9b858c1fc1d18ab42d262907c84866

Contents?: true

Size: 432 Bytes

Versions: 8

Compression:

Stored size: 432 Bytes

Contents

require 'sidekiq'

require_relative 'jobs/execute_test_run'
require_relative 'jobs/resume_test_run'
require_relative 'jobs/invoke_validator_session'

module Inferno
  module Jobs
    def self.perform(job_klass, *params, force_synchronous: false)
      if force_synchronous || (Application['async_jobs'] == false)
        job_klass.new.perform(*params)
      else
        job_klass.perform_async(*params)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
inferno_core-0.6.1 lib/inferno/jobs.rb
inferno_core-0.6.0 lib/inferno/jobs.rb
inferno_core-0.5.4 lib/inferno/jobs.rb
inferno_core-0.5.3 lib/inferno/jobs.rb
inferno_core-0.5.2 lib/inferno/jobs.rb
inferno_core-0.5.1 lib/inferno/jobs.rb
inferno_core-0.5.0 lib/inferno/jobs.rb
inferno_core-0.4.44 lib/inferno/jobs.rb