Module: Conductor::Workflow::TimeoutPolicy
- Defined in:
- lib/conductor/workflow/timeout_policy.rb
Overview
Timeout policy for workflows and tasks
Constant Summary collapse
- TIME_OUT_WORKFLOW =
Workflow times out and is marked as TIMED_OUT
'TIME_OUT_WF'- ALERT_ONLY =
Only send an alert, workflow continues
'ALERT_ONLY'- ALL_POLICIES =
All valid timeout policies
[TIME_OUT_WORKFLOW, ALERT_ONLY].freeze
Class Method Summary collapse
-
.valid?(policy) ⇒ Boolean
Check if a timeout policy is valid.
Class Method Details
.valid?(policy) ⇒ Boolean
Check if a timeout policy is valid
19 20 21 |
# File 'lib/conductor/workflow/timeout_policy.rb', line 19 def self.valid?(policy) ALL_POLICIES.include?(policy) end |