Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

how do you run a job every 10 mins? #57

Closed
pateljatin opened this Issue April 04, 2013 · 1 comment

3 participants

pateljatin Nick Campbell maltzj
pateljatin

Hi,
I'm trying to use this and wondering how to run/schedule a job every 10 mins?

Thanks,
Jatin

maltzj

You want to set the cronTime parameter of your object to "0 */10 * * * *". So your job would look like

job = new cronJob({
    cronTime: "0 */10 * * * *"
    onTick: function(){
        console.log("Doing stuff");
    }
    start: true,
});

You can find more examples in the docs.

Nick Campbell ncb000gt closed this April 05, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.