Liking cljdoc? Tell your friends :D

titanoboa.processor


*cmd-exchange-ch*clj

source

*server-config*clj

source

add->historyclj

(add->history job {:keys [step-end end message exception result] :as props})
source

assess4retryclj

(assess4retry {:keys [retry-on-error? max-retries id] :as step}
              step-retries-map)
source

contains-someclj

(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)
sourceraw docstring

dispatch-job-threads!clj

(dispatch-job-threads!
  out-jobs-ch
  {:keys [step next-step parallel-threads thread-call-stack] :as job})
source

dispatch4join!clj

(dispatch4join! {:keys [thread-stack parallel-threads] :as job})
source

dispatch4join?clj

(dispatch4join? {:keys [thread-stack] :as job})
source

finalize-job!clj

(finalize-job! {:keys [jobid thread-stack callback-ch] :as job}
               finished-ch
               ack-fns-vec
               update-cache-fn
               &
               [commit-callback-ch])
source

find-matching-stepsclj

(find-matching-steps steps r)
source

find-next-stepclj

(find-next-step current-step step-result)
source

get-prop-trimming-fnclj

(get-prop-trimming-fn dont-log-properties
                      trim-logged-properties
                      properties-trim-size)
source

get-stepclj

(get-step {{:keys [steps] :as jobdef} :jobdef :as job} step-id)
source

get-thread-idclj

(get-thread-id {:keys [thread-stack] :as job})
source

init-first-stepclj

(init-first-step {{:keys [steps] :as jobdef} :jobdef
                  :keys [state next-step jobdir properties step-start]
                  :as job})
source

init-stepclj

(init-step {{:keys [steps] :as jobdef} :jobdef
            :keys [state step-start next-step jobdir properties step-retries
                   node-id]
            :as job})
source

initialize-stepclj

(initialize-step {:keys [state] :as job})
source

instantiate-job!clj

(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})
source

new-history-stubclj

(new-history-stub {:keys [step step-start] :as job})
source

next-step-join?clj

(next-step-join? job next-step-id)
source

normalize-resultclj

(normalize-result step-result)
source

orchestrate-join!clj

(orchestrate-join! {:keys [thread-stack parallel-threads step] :as job})
source

orchestrate-join?clj

(orchestrate-join? {:keys [thread-stack] :as job})
source

orchestrate-stepclj

(orchestrate-step {:keys [step thread-stack] :as job} node-id)
source

preprocessclj

(preprocess job)
source

process-map-stepclj

(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})
source

process-reduce-stepclj

(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})
source

process-stepclj

(process-step {:keys [state step step-start start map-steps reduce-steps
                      thread-stack step-retries]
               :as job}
              node-id)
source

run-job!clj

(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.
sourceraw docstring

run-sync-job!clj

(run-sync-job! {:keys [new-jobs-ch mq-pool] :as config})
source

start-job!clj

(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.
sourceraw docstring

start-processor!clj

(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})
source

trim-stackclj

(trim-stack job)
source

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

× close