Functionality for working with script extensions. Extensions are a way for third party libraries to add functionality to scripts, that is easy to activate and can also be used in yaml-type scripts. You could of course also add regular functions to invoke, but this is not easy to use, especially when using container jobs. Extensions do this by registering themselves under a specific namespaced keyword. If this key is found in job properties, the associated extension code is executed. Extensions can be executed before or after a job (or both).
Functionality for working with script extensions. Extensions are a way for third party libraries to add functionality to scripts, that is easy to activate and can also be used in yaml-type scripts. You could of course also add regular functions to invoke, but this is not easy to use, especially when using container jobs. Extensions do this by registering themselves under a specific namespaced keyword. If this key is found in job properties, the associated extension code is executed. Extensions can be executed before or after a job (or both).
(get-config rt k)
Retrieves configuration for the extension from the job
Retrieves configuration for the extension from the job
(set-value rt k v)
Sets the extension value in the job. This value will be stored with the job, so it
must be serializable to edn
.
Sets the extension value in the job. This value will be stored with the job, so it must be serializable to `edn`.
(wrap-job job)
(wrap-job job registered-ext)
Wraps job so that extensions are invoked before and after it.
Wraps job so that extensions are invoked before and after it.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close