Socket
Socket
Sign inDemoInstall

qonvoy

Package Overview
Dependencies
15
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    qonvoy

An extremely minimal task runner


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Qonvoy

an extremely minimal task runner

use typescript -_-

const Qonvoy = require('qonvoy')

Qonvoy.init({
    redisConnectionString: process.env.REDIS_URL, // redis connection string
    retention: 60*60*24 // how many seconds to keep finished data
})

var firstItem = await Qonvoy.add('testqueue', {
    testing: true,
    aTestTask: 1.0
})

var secondItem = await Qonvoy.add('testqueue', {
    testing: true,
    aTestTask: 2.0
})

var thirdItem = await Qonvoy.add('testqueue', {
    testing: true,
    aTestTask: 3.0
})

async function processFunc(item: Qonvoy.Item) {
    console.log(item.aTestTask)
    return true
}

Qonvoy.processOne('testqueue', secondItem, processFunc) // specify run second item first
Qonvoy.processNext('testqueue', processFunc) // first item - next in queue
Qonvoy.processNext('testqueue', processFunc) // third item - next in queue

FAQs

Last updated on 23 Sep 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc