New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

blue-queue

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blue-queue

Messing with queues

latest
Source
npmnpm
Version
0.0.0
Version published
Maintainers
1
Created
Source

qq

messing with queues

Goal here is to create a persistent job queue that can be backed by any sql database. Redis or something similar is probably a better fit but since we are using sql already . . .

Desired functionality.

Easily queue up a single job or a bunch of jobs.

Support scheduled/delayed jobs.

Support intelligent retry logic.

Automatic persistence and running of jobs as close to desired run time as possible.

Job

A Job is any JSON with the following fields.

Support for scheduled and delayed jobs and for retry time is implemented using desiredRunTime. desiredRunTime defaults to now if not explicitly set on first run and on retry.

If you want to delay a job, set desiredRunTime to the desired delay. If you want a job run at a specific time set desiredRunTime to that time. On failure, make sure your retry logic sets desiredRunTime to your liking.

We'll probably provide functions to make all of the above easy.

Keywords

Queue

FAQs

Package last updated on 06 Jan 2015

Did you know?

Socket

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