Liking cljdoc? Tell your friends :D

metabase.models.task-history


allclj

(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
sourceraw docstring

cleanup-task-history!clj

(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.
sourceraw docstring

do-with-task-historyclj

(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.
sourceraw docstring

TaskHistoryclj

(TaskHistory)
(TaskHistory id)
(TaskHistory & kvs)

Entity for 'task_history' table; instance of TaskHistoryInstance.

Entity for 'task_history' table; instance of TaskHistoryInstance.
sourceraw docstring

with-task-historycljmacro

(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"}
    ...)
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close