Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jqueue

Package Overview
Dependencies
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jqueue - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

2

package.json
{
"name": "jqueue",
"version": "0.1.2",
"version": "0.1.3",
"description": "MySQL backed plugable Node.js job queue based on the Beanstalk Job Lifecycle",

@@ -5,0 +5,0 @@ "devDependencies": {

@@ -1,6 +0,1 @@

jqueue
======
Plugable Node.js job queue based on the Beanstalk Job Lifecycle
# Getting Started

@@ -10,11 +5,10 @@

```javascript
var jqueueClient = require('jqueue');
var Jqueue = require('jqueue');
```
## Init jqueue
## Create jqueue
- dependency: [node-mysql] (https://www.npmjs.com/package/node-mysql)
**Important:** It's necessary call init before call any other method!
```javascript
var jqueueClient = require('jqueue');
var Jqueue = require('jqueue');
var db = require('node-mysql');

@@ -31,9 +25,3 @@

var jqueue = new jqueueClient.Jqueue(dataSource);
jqueue.init(function(error) {
if(!error) {
console.log('I am alive!');
}
});
var jqueue = new Jqueue(dataSource);
```

@@ -96,12 +84,4 @@

# Queue
[See Queue Object documentation] (queue)
# Message
[See Message Object documentation] (message)
# Callbacks standard
The callbacks functions need to respect the callback standard (error, data). So, when you set a callback function, make sure that there at least an error parameter. Even if no error occurs, the error parameter needs to be set, but in this case, the error value will be null.

@@ -36,3 +36,3 @@ var Queue = require('./queue');

status ENUM(\'ready\', \'reserved\', \'buried\') NOT NULL,\
data VARCHAR(4096) NOT NULL,\
data VARCHAR(65535) NOT NULL,\
priority TINYINT NOT NULL,\

@@ -39,0 +39,0 @@ date_time TIMESTAMP NOT NULL,\

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc