Class: QaServer::ScenarioRunCache
- Inherits:
-
Object
- Object
- QaServer::ScenarioRunCache
- Extended by:
- CacheKeys
- Defined in:
- app/cache_processors/qa_server/scenario_run_cache.rb
Constant Summary
Constants included from CacheKeys
CacheKeys::PERFORMANCE_DATATABLE_DATA_CACHE_KEY, CacheKeys::SCENARIO_RUN_FAILURE_DATA_CACHE_KEY, CacheKeys::SCENARIO_RUN_HISTORY_DATA_CACHE_KEY, CacheKeys::SCENARIO_RUN_HISTORY_UP_DOWN_DATA_CACHE_KEY, CacheKeys::SCENARIO_RUN_SUMMARY_DATA_CACHE_KEY
Class Method Summary collapse
-
.run_tests(force: false) ⇒ Object
Run connection tests.
Class Method Details
.run_tests(force: false) ⇒ Object
Run connection tests
9 10 11 12 13 14 15 |
# File 'app/cache_processors/qa_server/scenario_run_cache.rb', line 9 def run_tests(force: false) Rails.cache.fetch(cache_key, expires_in: next_expiry, race_condition_ttl: 30.seconds, force: force) do QaServer.config.monitor_logger.debug("(QaServer::ScenarioRunCache) - KICKING OFF TEST RUN (force: #{force})") QaServer::MonitorTestsJob.perform_later "Test run initiated at #{QaServer::TimeService.current_time}" end end |