Current section

Files

Jump to
journey lib journey persistence schema execution computation_state.ex
Raw

lib/journey/persistence/schema/execution/computation_state.ex

defmodule Journey.Persistence.Schema.Execution.ComputationState do
@moduledoc false
@type t :: :not_set | :computing | :set | :failed | :cancelled
@doc """
Returns a list of all possible states for a computation node.
"""
@spec values() :: [t()]
def values() do
[
:not_set,
:computing,
:success,
:failed,
:abandoned,
:cancelled
]
end
end