lambdacd.runners

should-trigger-next-build?

start-new-run-after-first-step-finished

(start-new-run-after-first-step-finished {pipeline-def :pipeline-def, context :context})
Runner that makes sure there is always one pipeline-run with the first step active. useful if the first step is waiting for
a trigger such as a VCS commit and you don't want to wait for the whole pipeline to complete before starting the next run.
Do not use this if your first step finishes immediately as this will lead to lots of active pipelines

start-one-run-after-another

(start-one-run-after-another {pipeline-def :pipeline-def, context :context})
Runner that always keeps one pipeline-run active. It waits for a run to complete, then starts a new one.

stop-runner

(stop-runner ctx)

while-not-stopped

macro

(while-not-stopped ctx & body)