Class: QaServer::ScenarioRunSummaryCache
- Inherits:
-
Object
- Object
- QaServer::ScenarioRunSummaryCache
- Extended by:
- CacheKeys
- Defined in:
- app/cache_processors/qa_server/scenario_run_summary_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_SUMMARY_DATA_CACHE_KEY
Class Method Summary collapse
-
.summary_for_run(run:) ⇒ Object
Summary for a run.
Class Method Details
.summary_for_run(run:) ⇒ Object
Summary for a run
22 23 24 25 26 27 |
# File 'app/cache_processors/qa_server/scenario_run_summary_cache.rb', line 22 def summary_for_run(run:) Rails.cache.fetch(cache_key_for_run_summary(run.id), expires_in: next_expiry, race_condition_ttl: 30.seconds) do QaServer.config.monitor_logger.debug("(QaServer::ScenarioRunSummaryCache) - CALCULATING SUMMARY for scenario run #{run.id}") scenario_history_class.run_summary(scenario_run: run) end end |