Class: ForestLiana::WorkflowExecutionsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/forest_liana/workflow_executions_controller.rb

Constant Summary collapse

FORWARDED_HEADERS =
%w[Authorization Cookie].freeze
UPSTREAM_TIMEOUT_IN_SECONDS =
10
UPSTREAM_ERRORS =
[
  HTTParty::Error,
  SocketError,
  Errno::ECONNREFUSED,
  Net::OpenTimeout,
  Net::ReadTimeout,
  Timeout::Error
].freeze

Instance Method Summary collapse

Methods inherited from ApplicationController

#authenticate_user_from_jwt, #deactivate_count_response, #forest_user, #get_collection, #internal_server_error, papertrail?, #serialize_model, #serialize_models

Methods inherited from BaseController

#route_not_found

Instance Method Details

#showObject



16
17
18
# File 'app/controllers/forest_liana/workflow_executions_controller.rb', line 16

def show
  forward_to_executor(method: :get, suffix: '')
end

#triggerObject



20
21
22
# File 'app/controllers/forest_liana/workflow_executions_controller.rb', line 20

def trigger
  forward_to_executor(method: :post, suffix: '/trigger')
end