Handles job execution and ordering in a build
Handles job execution and ordering in a build
(as-serializable job)
Converts job into something that can be converted to edn
Converts job into something that can be converted to edn
(ex->result ex)
Creates result structure from an exception
Creates result structure from an exception
(execute-jobs! jobs rt)
Executes all jobs in dependency order. Returns a deferred that will hold
the results of all executed jobs. The runtime can contain an atom canceled?
that should hold true
if the jobs loop should stop executing.
Executes all jobs in dependency order. Returns a deferred that will hold the results of all executed jobs. The runtime can contain an atom `canceled?` that should hold `true` if the jobs loop should stop executing.
(execute-next state executing results rt)
Performs the next iteration of job execution
Performs the next iteration of job execution
(filter-jobs pred jobs)
Applies a filter to the given jobs, but includes all dependencies of jobs that match the filter, even though the dependencies themselves may not match it.
Applies a filter to the given jobs, but includes all dependencies of jobs that match the filter, even though the dependencies themselves may not match it.
Base job protocol that is able to execute it, taking the runtime as argument.
Base job protocol that is able to execute it, taking the runtime as argument.
(execute! job rt)
Converts job into something that can be put in an event
Converts job into something that can be put in an event
Event that indicates the job has been fully completed. The result should not change anymore.
Event that indicates the job has been fully completed. The result should not change anymore.
Creates an event that indicates the job has executed, but has not been completed yet. Extensions may need to be applied first.
Creates an event that indicates the job has executed, but has not been completed yet. Extensions may need to be applied first.
(label-filter f)
Predicate function that matches a job by its labels
Predicate function that matches a job by its labels
(next-jobs jobs)
Returns a list of next jobs that are eligible for execution. If all jobs are
pending, returns the starting jobs, those that don't have any dependencies.
Otherwise returns all pending jobs that have their dependencies fulfilled.
Returns a list of next jobs that are eligible for execution. If all jobs are pending, returns the starting jobs, those that don't have any dependencies. Otherwise returns all pending jobs that have their dependencies fulfilled.
(resolve-all rt jobs)
Resolves all jobs, removes anything that's not resolvable or not a job.
Resolves all jobs, removes anything that's not resolvable or not a job.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close