lambdacd.stepsupport.killable

Functions that help in adding the ability for a step to be killed.

if-not-killed

macro

(if-not-killed ctx & body)

Executes the given body unless the step was killed. If killed, sets the status accordingly.

Example:

(loop []
  (if-not-killed ctx
                 (if (should-stop-waiting?)
                   {:status :success}
                   (recur))))

killed?

(killed? ctx)

Returns true if the step was killed.