Create executor queue worker(s)
A Resque Worker implementation that consumes jobs in a Resque queue.
npm install screwdriver-queue-worker
Parameter | Type | Description |
---|---|---|
config | Object | Configuration Object |
config.annotations | Object | Optional key-value object |
config.apiUri | String | Screwdriver's API |
config.buildId | String | The unique ID for a build |
config.container | String | Container for the build to run in |
config.token | String | JWT to act on behalf of the build |
The start function is expected to create a build in the designated execution engine.
A callback of fn(err, result)
, where err
is an Error that was encountered (if any) and result
is the data that the execution engine returns.
Parameter | Type | Description |
---|---|---|
config | Object | Configuration Object |
config.annotations | Object | Optional key-value object |
config.buildId | String | The unique ID for a build |
The stop function is expected to stop/cleanup a task in the desginated execution engine.
A callback of fn(err, result)
, where err
is an Error that was encountered (if any) and result
is the data that the execution engine returns.
npm test
Code licensed under the BSD 3-Clause license. See LICENSE file for terms.