(create-task! this task)
Creates a new task.
Creates a new task.
(fail! this task-id pid error)
(terminate! this task-id pid)
(task this task-id)
Returns task for the specified task-id combination. Returns nil if task-id not found.
Returns task for the specified task-id combination. Returns nil if task-id not found.
(reserve-task! this topic pid)
Attempts to reserve the next available task. Tasks that are not owned by any process and whose lease expired are available to be reserved. Throws exceptions in the following scenarios: :no-task-found - No task available to be picked up.
Attempts to reserve the next available task. Tasks that are not owned by any process and whose lease expired are available to be reserved. Throws exceptions in the following scenarios: :no-task-found - No task available to be picked up.
(snooze! this task-id pid snooze-time)
(tasks this task-group-id)
Returns tasks for the specified task-group-id
Returns tasks for the specified task-group-id
(list-tasks this
topic
{:keys [from to sub-topic] :as filters}
{:keys [limit] :as cursor})
List all tasks
List all tasks
(extend-lease! this task-id pid)
Attempts to extend lease of the specified task. :no-task-found - Task not found. :already-done - Task terminated. :wrong-owner - Attempted to extend lease of a task owned by another process. :lease-expired - Attempted to extend lease of a task whose lease already expired.
Attempts to extend lease of the specified task. :no-task-found - Task not found. :already-done - Task terminated. :wrong-owner - Attempted to extend lease of a task owned by another process. :lease-expired - Attempted to extend lease of a task whose lease already expired.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close