Module: Inferno::Jobs
- Defined in:
- lib/inferno/jobs.rb,
lib/inferno/jobs/resume_test_run.rb,
lib/inferno/jobs/execute_test_run.rb,
lib/inferno/jobs/invoke_validator_session.rb
Defined Under Namespace
Classes: ExecuteTestRun, InvokeValidatorSession, ResumeTestRun
Class Method Summary collapse
Class Method Details
.perform(job_klass, *params, force_synchronous: false) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/inferno/jobs.rb', line 9 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 |