View Source StepFlow.WorkerDefinitions (StepFlow v1.8.0)
The WorkerDefinitions context.
Summary
Functions
Creates a WorkerDefinition.
Gets a single WorkerDefinition.
Returns the list of WorkerDefinitions.
Functions
Creates a WorkerDefinition.
Examples
iex> result = StepFlow.WorkerDefinitions.create_worker_definition(%{
...> queue_name: "my_queue",
...> label: "My Queue",
...> version: "1.2.3",
...> short_description: "short description",
...> description: "long description",
...> parameters: %{}
...> })
...> match?({:ok, %StepFlow.WorkerDefinitions.WorkerDefinition{}}, result)
true
iex> result = StepFlow.WorkerDefinitions.create_worker_definition(%{field: :bad_value})
...> match?({:error, %Ecto.Changeset{}}, result)
true
Gets a single WorkerDefinition.
Raises Ecto.NoResultsError
if the WorkerDefinition does not exist.
Returns the list of WorkerDefinitions.
Examples
iex> StepFlow.WorkerDefinitions.list_worker_definitions()
%{data: [], page: 0, size: 10, total: 0}