Coder Social home page Coder Social logo

att55 / queue-worker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from screwdriver-cd/queue-worker

0.0 1.0 0.0 123 KB

Create executor queue worker(s)

Home Page: https://cd.screwdriver.cd/pipelines/301

License: Other

Dockerfile 0.60% JavaScript 99.40%

queue-worker's Introduction

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
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
config.jobId String Job that this build belongs to
config.blockedBy String Jobs 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
Parameter Type Description
config Object Configuration Object
config.annotations Object Optional key-value object
config.buildId String The unique ID for a build
config.jobId String Job that this build belongs to
config.blockedBy String Jobs 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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.