Class: QaServer::MonitorTestsJob
- Inherits:
-
ApplicationJob
- Object
- ApplicationJob
- QaServer::MonitorTestsJob
- Includes:
- AuthorityValidationBehavior
- Defined in:
- app/jobs/qa_server/monitor_tests_job.rb
Constant Summary
Constants included from AuthorityValidationBehavior
AuthorityValidationBehavior::ALL_VALIDATIONS, AuthorityValidationBehavior::VALIDATE_ACCURACY, AuthorityValidationBehavior::VALIDATE_ACCURACY_COMPARISON, AuthorityValidationBehavior::VALIDATE_CONNECTIONS, AuthorityValidationBehavior::VALIDATION_TYPE_PARAM
Instance Method Summary collapse
Instance Method Details
#perform ⇒ Object
12 13 14 15 |
# File 'app/jobs/qa_server/monitor_tests_job.rb', line 12 def perform # checking active_job_id? prevents race conditions for long running jobs run_tests if QaServer::JobIdCache.active_job_id?(job_key: job_key, job_id: job_id, expires_in: 2.hours) end |