StepFlow v0.0.4 StepFlow.WorkerDefinitions View Source
The WorkerDefinitions context.
Link to this section Summary
Functions
Creates a WorkerDefinition.
Gets a single WorkerDefinition.
Returns the list of WorkerDefinitions.
Link to this section Functions
Creates a WorkerDefinition.
Examples
iex> create_worker_definition(%{field: value})
{:ok, %WorkerDefinition{}}
iex> create_worker_definition(%{field: bad_value})
{:error, %Ecto.Changeset{}}
Gets a single WorkerDefinition.
Raises Ecto.NoResultsError
if the WorkerDefinition does not exist.
Examples
iex> get_worker_definition!(123)
%WorkerDefinition{}
iex> get_worker_definition!(456)
** (Ecto.NoResultsError)
Returns the list of WorkerDefinitions.
Examples
iex> list_worker_definitions()
[%WorkerDefinition{}, ...]