z_pivot_rsc_task_job (zotonic_core v1.0.0-rc.11)

Run a pivot task queue job.

Link to this section Summary

Link to this section Functions

Link to this function

maybe_schedule_retry(_, Error, Reason, Trace, Context)

-spec maybe_schedule_retry(map(), atom(), term(), list(), z:context()) -> ok.
Link to this function

start_task(Task, Context)

-spec start_task(map(), z:context()) -> {ok, pid()} | {error, overload}.
Start a task queue sidejob.
Link to this function

task_job(Task, Context)

-spec task_job(map(), z:context()) -> ok.
Run the sidejob task queue task.
Link to this function

task_retry_due(ErrCt)

-spec task_retry_due(integer()) -> calendar:datetime().