Class: ChronoForge::Dashboard::BulkReapJob
- Inherits:
-
ActiveJob::Base
- Object
- ActiveJob::Base
- ChronoForge::Dashboard::BulkReapJob
- Defined in:
- app/jobs/chrono_forge/dashboard/bulk_reap_job.rb
Overview
Reap every stranded workflow in the background so the request returns fast even with a large backlog. Delegates to the gem's own sweep, which finds running workflows with a stale lock (top-level and branch children) and re-enqueues each — the same operation a periodic reaper would run.
Instance Method Summary collapse
Instance Method Details
#perform ⇒ Object
8 |
# File 'app/jobs/chrono_forge/dashboard/bulk_reap_job.rb', line 8 def perform = ChronoForge::Workflow.reap_stalled |