tarearbol v0.3.2 Tarearbol
Tarearbol
module provides an interface to run tasks in easy way.
Examples
iex> result = Tarearbol.ensure(fn -> raise "¡?" end, attempts: 1, raise: false)
iex> {:error, %{job: _job, outcome: outcome}} = result
iex> {error, _stacktrace} = outcome
iex> error
%RuntimeError{message: "¡?"}
Link to this section Summary
Link to this section Functions
Link to this function
drain()
Link to this function
ensure(job, opts \\ [])
Link to this function
ensure!(job, opts \\ [])
Link to this function
ensure_all(jobs, opts \\ [])
Link to this function
ensure_all_streamed(jobs, opts \\ [])
Link to this function
run_at(job, at, opts \\ [])
Link to this function
run_in(job, interval, opts \\ [])
Link to this function
spawn(job, opts \\ [])