Liking cljdoc? Tell your friends :D

verbo.sokka.task


task-allowed-status-transitionsclj


task-statusesclj


TaskServicecljprotocol

create-task!clj

(create-task! this task)

Creates a new task.

Creates a new task.

fail!clj

(fail! this task-id pid error)

terminate!clj

(terminate! this task-id pid)

taskclj

(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!clj

(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!clj

(snooze! this task-id pid snooze-time)

tasksclj

(tasks this task-group-id)

Returns tasks for the specified task-group-id

Returns tasks for the specified task-group-id

list-tasksclj

(list-tasks this
            topic
            {:keys [from to sub-topic] :as filters}
            {:keys [limit] :as cursor})

List all tasks

List all tasks

extend-lease!clj

(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