Class: RigidWorkflow::WorkflowJob
- Inherits:
-
ActiveJob::Base
- Object
- ActiveJob::Base
- RigidWorkflow::WorkflowJob
- Defined in:
- app/jobs/rigid_workflow/workflow_job.rb
Overview
Executes workflow advancement by scheduling the next iteration. Runs on the :workflows queue with per-run concurrency limits.
Instance Method Summary collapse
Instance Method Details
#perform(run_id) ⇒ Object
10 11 12 13 14 15 |
# File 'app/jobs/rigid_workflow/workflow_job.rb', line 10 def perform(run_id) workflow_run = RigidWorkflow::Run.find_by(id: run_id) return if workflow_run.nil? || workflow_run.finished? RigidWorkflow::Orchestrator.advance!(workflow_run) end |