Adds a task for the build found in the incoming event
Adds a task for the build found in the incoming event
Adds a task for the job found in the incoming event
Adds a task for the job found in the incoming event
Interceptor that assigns a runner to the task stored in context
Interceptor that assigns a runner to the task stored in context
Interceptor that adds a queued task to the in-memory list in the state.
Interceptor that adds a queued task to the in-memory list in the state.
Updates state to consume resources according to scheduled task
Updates state to consume resources according to scheduled task
If the result contains deleted queue items, this interceptor will remove them from the database.
If the result contains deleted queue items, this interceptor will remove them from the database.
(make-routes state storage)
Makes mailman routes for event handling that perform actual dispatching and resource management.
Makes mailman routes for event handling that perform actual dispatching and resource management.
Same as consume, but releases the used resources instead
Same as consume, but releases the used resources instead
Replaces the assignment in the context with the one from the result
Replaces the assignment in the context with the one from the result
Updates the queue with values from the result
Updates the queue with values from the result
Interceptor that saves a queued task. These are tasks that could not be assigned immediately due to lack of resources.
Interceptor that saves a queued task. These are tasks that could not be assigned immediately due to lack of resources.
(task-end ctx)
When a build ends, resources become available again. This means we may be able to schedule another task from the queue. If so, we assign it here, and remove that task from the queue. Since the released resources belong to a specific runner, we can only assign the task to that runner.
When a build ends, resources become available again. This means we may be able to schedule another task from the queue. If so, we assign it here, and remove that task from the queue. Since the released resources belong to a specific runner, we can only assign the task to that runner.
Takes the :events
key from the result and puts that in the result instead.
Takes the `:events` key from the result and puts that in the result instead.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close