Upstream v2.0.7 Upstream.Job.State View Source

Handles Querying and Manipulating of Job States

Link to this section Summary

Link to this section Functions

Link to this function complete(job, result) View Source
complete(Upstream.Job.t(), any()) :: :error | :ok
Link to this function error(job, reason) View Source
error(Upstream.Job.t(), any()) :: any()
Link to this function get_result(job, timeout \\ 5000) View Source
get_result(Upstream.Job.t(), :infinity | non_neg_integer()) :: any()
Link to this function retry(job) View Source
retry(Upstream.Job.t()) :: :error | :ok
Link to this function start(job) View Source
start(Upstream.Job.t()) :: {:error, :already_exists} | {:ok, any()}