squiss-jobs

    1.0.4 • Public • Published

    squiss-jobs npm version npm version

    SQS-backed job queue.

    Quick start guide

    // instantiate your queue
    const queue = require('squiss-jobs')({
      queueUrl: process.env.JOBS_URI,
      region:   process.env.AWS_REGION
    })
     
    // create a job handler
    const foo = payload =>
      Promise.resolve(payload)
        .then(/* do something useful */)
     
    // register the job
    queue.handle('foo', foo)
     
    // start processing jobs
    queue.start()
     
    // send a job onto the queue
    queue.send('foo', { bar: 'baz' })

    v1 docs

    For v0 docs, see the original API.

    Keywords

    none

    Install

    npm i squiss-jobs

    DownloadsWeekly Downloads

    24

    Version

    1.0.4

    License

    UNLICENSED

    Last publish

    Collaborators

    • pklingem
    • flintinatux
    • mikeswart