             [onyx.peer.task-compile :as c]))
 
 (def task :my-task)
+
+(def irrelevant-task :not-my-task)
 
 (defn handle-exception-defer [event lifecycle phase e]
   :defer)

   (let [v (into (conj defers kill-lifecycle) trailing)
         res ((c/compile-lifecycle-handle-exception-functions v task) nil nil nil)]
     (is (= :kill res)))))

(def kill-lifecycle
  {:lifecycle/task task
   :lifecycle/calls ::kill-calls})

(def restart-irrelevant-lifecycle
  {:lifecycle/task irrelevant-task
   :lifecycle/calls ::restart-calls})

(def lifecycles [defer-lifecycle restart-lifecycle kill-lifecycle])

