Skip to content

screwdriver-cd/executor-queue

Repository files navigation

Executor Queue

Version Downloads Build Status Open Issues License

An executor plugin that routes builds through a Redis queue

The executor-queue for Screwdriver will push new jobs into a Redis queue. Other executors such as executor-docker, executor-k8s and executor-k8s-vm will process jobs from this queue.

Usage

$ npm install screwdriver-executor-queue

Interface

It will initialize a connection to node-resque with the provided connection details. You can optionally pass in circuit-fuses breaker options.

Configuration for any executors must be given directly to the workers that read from the queue.

Example executor yaml section:

executor:
    plugin: queue
    queue:
        options:
            # Configuration of the redis instance containing resque
            redisConnection:
                host: "127.0.0.1"
                port: 9999
                options:
                    password: "hunter2"
                database: 0

Testing

$ npm install
$ npm test

License

Code licensed under the BSD 3-Clause license. See LICENSE file for terms.