Skip to content

Instantly share code, notes, and snippets.

View christianguevara's full-sized avatar
🏠
Working from home

Christian Guevara christianguevara

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

To claim this, I am signing this object:

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@christianguevara
christianguevara / test.js
Last active January 25, 2018 20:30
Bull, cancelling an active job when a new job is added
var Queue = require('bull');
var _ = require('lodash');
var queue = new Queue('dev-1', {redis: {port: 6379, host: '127.0.0.1'}});
var tests = [
{audio: 'http://example.com/audio1.mp3', itemId: 12, id: 1},
{video: 'http://example.com/audio1.mp3', itemId: 12, id: 2}
];