Current section

Files

Jump to
journey lib journey graph step.ex
Raw

lib/journey/graph/step.ex

defmodule Journey.Graph.Step do
@moduledoc false
defstruct [
:name,
:gated_by,
:f_compute,
:f_on_save,
:type,
:mutates,
:update_revision_on_change,
:max_retries,
:abandon_after_seconds,
:heartbeat_interval_seconds,
:heartbeat_timeout_seconds,
:keep_latest_completed_computations,
:keep_oldest_completed_computations,
:max_iterations
]
@type t :: %__MODULE__{
name: atom,
gated_by: list,
f_compute: function,
f_on_save: function | nil,
type: Journey.Persistence.Schema.Execution.ComputationType.t(),
mutates: atom | nil,
update_revision_on_change: boolean,
max_retries: pos_integer(),
abandon_after_seconds: pos_integer(),
heartbeat_interval_seconds: pos_integer(),
heartbeat_timeout_seconds: pos_integer(),
keep_latest_completed_computations: :all | pos_integer() | nil,
keep_oldest_completed_computations: pos_integer() | nil,
max_iterations: pos_integer() | nil
}
end