An open API service indexing awesome lists of open source software.

https://github.com/screwdriver-cd/executor-queue

Executor plugin for Screwdriver using Resque
https://github.com/screwdriver-cd/executor-queue

Last synced: 11 months ago
JSON representation

Executor plugin for Screwdriver using Resque

Awesome Lists containing this project

README

          

# Executor Queue
[![Version][npm-image]][npm-url] ![Downloads][downloads-image] [![Build Status][status-image]][status-url] [![Open Issues][issues-image]][issues-url] ![License][license-image]

> 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](https://github.com/screwdriver-cd/executor-docker) and [executor-k8s](https://github.com/screwdriver-cd/executor-k8s) will process jobs from this queue.

## Usage

```bash
$ npm install screwdriver-executor-queue
```

### Interface

It will initialize a connection to [node-resque](https://github.com/taskrabbit/node-resque) with the provided connection details. You can optionally pass in [circuit-fuses](https://github.com/screwdriver-cd/circuit-fuses) breaker options.

Configuration for any executors must be given directly to the [workers](https://github.com/screwdriver-cd/queue-worker) that read from the queue.

**Example executor yaml section:**
```yaml
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

```bash
$ npm install
$ npm test
```

## License

Code licensed under the BSD 3-Clause license. See [LICENSE](./LICENSE) file for terms.

[npm-image]: https://img.shields.io/npm/v/screwdriver-executor-queue.svg
[npm-url]: https://npmjs.org/package/screwdriver-executor-queue
[downloads-image]: https://img.shields.io/npm/dt/screwdriver-executor-queue.svg
[license-image]: https://img.shields.io/npm/l/screwdriver-executor-queue.svg
[issues-image]: https://img.shields.io/github/issues/screwdriver-cd/executor-queue.svg
[issues-url]: https://github.com/screwdriver-cd/executor-queue/issues
[status-image]: https://cd.screwdriver.cd/pipelines/571/badge
[status-url]: https://cd.screwdriver.cd/pipelines/571