Class: JobWorkflow::Monitoring::ExecutionsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- JobWorkflow::Monitoring::ExecutionsController
- Defined in:
- app/controllers/job_workflow/monitoring/executions_controller.rb,
sig/generated/controllers/job_workflow/monitoring/executions_controller.rbs
Instance Method Summary collapse
-
#index ⇒ void
: () -> void.
-
#show ⇒ void
: () -> void.
Instance Method Details
#index ⇒ void
This method returns an undefined value.
: () -> void
12 13 14 15 16 17 18 19 20 21 |
# File 'app/controllers/job_workflow/monitoring/executions_controller.rb', line 12 def index @workflow = WorkflowRegistry.find(params[:workflow_job_class_name]) return render plain: "Workflow definition not found.", status: :not_found if @workflow.nil? @page = ExecutionRegistry.page_for( job_class_name: @workflow.name, cursor: params[:cursor] ) @executions = @page.executions end |
#show ⇒ void
This method returns an undefined value.
: () -> void
24 25 26 27 28 29 30 31 32 |
# File 'app/controllers/job_workflow/monitoring/executions_controller.rb', line 24 def show @workflow = WorkflowRegistry.find(params[:workflow_job_class_name]) return render plain: "Workflow definition not found.", status: :not_found if @workflow.nil? @execution = ExecutionRegistry.find(params[:id]) return if @execution && @execution.job_class_name == @workflow.name render plain: "Workflow execution is no longer available.", status: :not_found end |