(all limit offset)
Inputs: [limit :- (s/maybe su/IntGreaterThanZero) offset :- (s/maybe su/IntGreaterThanOrEqualToZero)]
Return all TaskHistory entries, applying limit
and offset
if not nil
Inputs: [limit :- (s/maybe su/IntGreaterThanZero) offset :- (s/maybe su/IntGreaterThanOrEqualToZero)] Return all TaskHistory entries, applying `limit` and `offset` if not nil
(cleanup-task-history! num-rows-to-keep)
Deletes older TaskHistory rows. Will order TaskHistory by ended_at
and delete everything after num-rows-to-keep
.
This is intended for a quick cleanup of old rows. Returns true
if something was deleted.
Deletes older TaskHistory rows. Will order TaskHistory by `ended_at` and delete everything after `num-rows-to-keep`. This is intended for a quick cleanup of old rows. Returns `true` if something was deleted.
(do-with-task-history info f)
Inputs: [info :- TaskHistoryInfo f]
Impl for with-task-history
macro; see documentation below.
Inputs: [info :- TaskHistoryInfo f] Impl for `with-task-history` macro; see documentation below.
(TaskHistory)
(TaskHistory id)
(TaskHistory & kvs)
Entity for 'task_history' table; instance of TaskHistoryInstance.
Entity for 'task_history' table; instance of TaskHistoryInstance.
(with-task-history info & body)
Execute body
, recording a TaskHistory entry when the task completes; if it failed to complete, records an entry
containing information about the Exception. info
should contain at least a name for the task (conventionally
lisp-cased) as :task
; see the TaskHistoryInfo
schema in this namespace for other optional keys.
(with-task-history {:task "send-pulses"} ...)
Execute `body`, recording a TaskHistory entry when the task completes; if it failed to complete, records an entry containing information about the Exception. `info` should contain at least a name for the task (conventionally lisp-cased) as `:task`; see the `TaskHistoryInfo` schema in this namespace for other optional keys. (with-task-history {:task "send-pulses"} ...)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close