Class: QaServer::HistoryGraphJob
- Inherits:
-
ApplicationJob
- Object
- ApplicationJob
- QaServer::HistoryGraphJob
- Defined in:
- app/jobs/qa_server/history_graph_job.rb
Instance Method Summary collapse
Instance Method Details
#perform(data:) ⇒ Object
10 11 12 13 |
# File 'app/jobs/qa_server/history_graph_job.rb', line 10 def perform(data:) # checking active_job_id? prevents race conditions for long running jobs generate_graph(data) if QaServer::JobIdCache.active_job_id?(job_key: job_key, job_id: job_id) end |