(ns my.ns)
(defn start-task? [event lifecycle]
(println "Executing once before the task starts.")
true)
(defn before-task-start [event lifecycle]
(println "Executing once before the task starts.")
{})
(defn after-task-stop [event lifecycle]
(println "Executing once after the task is over.")
{})
(defn before-batch [event lifecycle]
(println "Executing once before each batch.")
{})
(defn after-read-batch [event lifecycle]
(println "Executing once after this batch has been read.")
{})
(defn after-apply-fn [event lifecycle]
(println "Executing once after the onyx/fn has been called on the input segments.")
{})
(defn after-batch [event lifecycle]
(println "Executing once after each batch.")
{})
(defn handle-exception [event lifecycle lifecycle-phase e]
(println "Caught exception: " e)
(println "Returning :restart, indicating that this task should restart.")
:restart)