Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delayed job executes now #31

Open
mbouclas opened this issue Mar 11, 2015 · 0 comments
Open

Delayed job executes now #31

mbouclas opened this issue Mar 11, 2015 · 0 comments

Comments

@mbouclas
Copy link

I am pushing a job to the queue as such :

Queue.use(Config.beanstalkd.tube, function(err, tname){
    Queue.put(0,15,60,JSON.stringify(['aggregator', job1]),onJobPushedToQueue);
});

I have a simple worker like so :

module.exports = function() {
    function aggregatorWorker() {
        this.type = 'aggregator';
    }


    aggregatorWorker.prototype.work = function (payload, callback) {
        console.log('payload', payload);
        callback('success');
    };

    var handler = new aggregatorWorker();
    return handler;
};

And the moment i push the job to queue it gets processed. according to the documentation, shouldn't this be executed at least 15sec later?

Running on ubuntu @Version 1.10+1+g86231ba

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant