(assess4retry {:keys [retry-on-error? max-retries id] :as step}
step-retries-map)
(contains-some pred coll)
Returns the first non-nil value of (pred x) for any x in coll, else nil. One common idiom is to use a set as pred, for example this will return :fred if :fred is in the sequence, otherwise nil: (some #{:fred} coll)
Returns the first non-nil value of (pred x) for any x in coll, else nil. One common idiom is to use a set as pred, for example this will return :fred if :fred is in the sequence, otherwise nil: (some #{:fred} coll)
(dispatch-job-threads!
out-jobs-ch
{:keys [step next-step parallel-threads thread-call-stack] :as job})
(finalize-job! {:keys [jobid thread-stack callback-ch] :as job}
finished-ch
ack-fns-vec
update-cache-fn
&
[commit-callback-ch])
(get-prop-trimming-fn dont-log-properties
trim-logged-properties
properties-trim-size)
(init-first-step {{:keys [steps] :as jobdef} :jobdef
:keys [state next-step jobdir properties step-start]
:as job})
(init-step {{:keys [steps] :as jobdef} :jobdef
:keys [state step-start next-step jobdir properties step-retries
node-id]
:as job})
(instantiate-job! {:keys [tracking-id id jobdef jobdef-name revision properties
files new-jobs-ch state-agent job-folder defs-atom
mq-pool callback-ch]
:as config})
(process-map-step {{:keys [jobdef-name sys-key standalone-system?
distributed-system? workers-count aggregator-q-name
create-folder?]
:as properties}
:properties
{step-id :id} :step
map-steps :map-steps
jobdir :jobdir
jobid :jobid
:as job})
(process-reduce-step {{:keys [terminate-standalone? map-step-id commit-interval]
:as properties}
:properties
{step-id :id :as step} :step
map-steps :map-steps
jobdir :jobdir
jobid :jobid
:as job})
(process-step {:keys [state step step-start start map-steps reduce-steps
thread-stack step-retries]
:as job}
node-id)
(run-job! system-key
{:keys [jobdef jobdef-name revision properties files] :as conf}
sync)
Dispatches a request to start a job in given system. Does not use action thread pool. Returns the job id or the finished job if the sync flag is set to true.
Dispatches a request to start a job in given system. Does not use action thread pool. Returns the job id or the finished job if the sync flag is set to true.
(start-job! system-key {:keys [jobdef jobdef-name properties files] :as conf})
(start-job! system-key
{:keys [jobdef jobdef-name revision properties files] :as conf}
response-ch
keep-open)
Dispatches an action request to start a job in given system. The request is dispatched to the system's action thread pool. If a response channel is provided (it has to be a core async channel, distributed channels are not accepted!) the job's id will be put on the channel once the job has been instantiated. If the response channel is not provided, the function waits synchronously for the job to be instantiated and then returns the job id.
Dispatches an action request to start a job in given system. The request is dispatched to the system's action thread pool. If a response channel is provided (it has to be a core async channel, distributed channels are not accepted!) the job's id will be put on the channel once the job has been instantiated. If the response channel is not provided, the function waits synchronously for the job to be instantiated and then returns the job id.
(start-processor!
{:keys [stop-chan in-jobs-ch new-jobs-ch out-jobs-ch finished-ch state-agent
eviction-agent mq-session node-id cmd-exchange-ch server-config
dont-log-properties trim-logged-properties properties-trim-size]
:as config})
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close