(base-work-dir build)
Determines the base work dir to use inside the container
Determines the base work dir to use inside the container
(checkout-subdir n)
Returns the path for n
as a subdir of the checkout dir
Returns the path for `n` as a subdir of the checkout dir
(container-end ctx)
Indicates job script has terminated. If the sidecar has also ended, the job has been executed
Indicates job script has terminated. If the sidecar has also ended, the job has been executed
(credit-multiplier arch cpus mem)
Calculates the credit multiplier that needs to be applied for the container instance. This varies depending on the architecture, number of cpu's and amount of memory.
Calculates the credit multiplier that needs to be applied for the container instance. This varies depending on the architecture, number of cpu's and amount of memory.
(get-job-state ctx)
Retrieves state for the job indicated by job-id
in the event.
Retrieves state for the job indicated by `job-id` in the event.
Interceptor that aborts processing if the job indicated in the event is not found in the
state. This means the job was handled by another container runner, and should be ignored.
Requires state and works in conjunction with register-job
.
Interceptor that aborts processing if the job indicated in the event is not found in the state. This means the job was handled by another container runner, and should be ignored. Requires state and works in conjunction with `register-job`.
(job-state ctx f)
Applies f
to job state. Does not update state.
Applies `f` to job state. Does not update state.
(job-work-dir job build)
The work dir to use for the job in the container. This is the external job work dir, relative to the container checkout dir.
The work dir to use for the job in the container. This is the external job work dir, relative to the container checkout dir.
(make-sidecar-config {:keys [build job] :as conf})
Creates a configuration map using the runtime, that can then be passed on to the sidecar container.
Creates a configuration map using the runtime, that can then be passed on to the sidecar container.
Interceptor that registers the job referred to in the event in the state, indicating that it's being handled by this runner. Requires state.
Interceptor that registers the job referred to in the event in the state, indicating that it's being handled by this runner. Requires state.
(sidecar-end ctx)
Indicates job sidecar has terminated. If the container script has also ended, the job has been executed
Indicates job sidecar has terminated. If the container script has also ended, the job has been executed
(update-job-state ctx f & args)
Applies f
to job state, updates state.
Applies `f` to job state, updates state.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close