Sign inSign up

screwdrivercd/queue-worker

By screwdrivercd

•Updated over 6 years ago

Workers for executor

Image
Integration & delivery
Message queues
0

10K+

screwdrivercd/queue-worker repository overview

⁠Screwdriver Queue Worker

Version Downloads Build Status Open Issues Dependency Status License

Creates executor queue worker(s)

A Resque Worker implementation that consumes jobs in a Resque queue.

⁠Usage

npm install screwdriver-queue-worker

⁠Configuration

Queue worker already defaults most configuration⁠, but you can override defaults using a local.yaml or environment variables using custom-environment-variables.yaml⁠.

⁠Methods
⁠Start
⁠Required Parameters
ParameterTypeDescription
configObjectConfiguration Object
config.annotationsObjectOptional key-value object
config.apiUriStringScrewdriver's API
config.buildIdStringThe unique ID for a build
config.containerStringContainer for the build to run in
config.tokenStringJWT to act on behalf of the build
config.jobIdStringJob that this build belongs to
config.blockedByStringJobs that are blocking this job
⁠Expected Outcome

The start function is expected to create a build in the designated execution engine.

⁠Expected Return

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.

⁠Stop
⁠Required Parameters
ParameterTypeDescription
configObjectConfiguration Object
config.annotationsObjectOptional key-value object
config.buildIdStringThe unique ID for a build
config.jobIdStringJob that this build belongs to
config.blockedByStringJobs that are blocking this job
⁠Expected Outcome

The stop function is expected to stop/cleanup a task in the desginated execution engine.

⁠Expected Return

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.

⁠Testing

npm test

⁠License

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

Tag summary

Content type

Image

Digest

Size

344.7 MB

Last updated

over 6 years ago

docker pull screwdrivercd/queue-worker