Liking cljdoc? Tell your friends :D

monkey.ci.credits

Credit calculation functions

Credit calculation functions
raw docstring

calc-credit-multiplierclj

(calc-credit-multiplier x rt)
source

container-credit-consumer-fnclj

(container-credit-consumer-fn rt)

Returns the credit consumer function associated with the container runner. This is used to calculate the credit multiplier for a container job. If none is specified, it always returns zero.

Returns the credit consumer function associated with the container runner.
This is used to calculate the credit multiplier for a container job.  If
none is specified, it always returns zero.
sourceraw docstring

credit-consumer?clj

source

CreditConsumercljprotocol

Jobs that consume credits implement this protocol

Jobs that consume credits implement this protocol

credit-multiplierclj

(credit-multiplier job rt)

Calculates the credit multiplier for the given job. This depends on the type of job, the type of container runner and the resources required by the job. This can be considered the 'credit consumption per minute' for the job.

Calculates the credit multiplier for the given job.  This depends on the type
of job, the type of container runner and the resources required by the job.
This can be considered the 'credit consumption per minute' for the job.
sourceraw docstring

default-consumerclj

source

runner-credit-consumer-fnclj

(runner-credit-consumer-fn rt)

Returns the credit consumer function from the runtime associated with the build runner. This is used to calculate the credit multiplier for an action job, which is executed by the runner directly.

Returns the credit consumer function from the runtime associated with the
build runner.  This is used to calculate the credit multiplier for an action 
job, which is executed by the runner directly.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close