question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Do not start work immediately

See original GitHub issue

Why do not start working without delay time (start).

var job1 = new CronJob({
    cronTime: '* 5 * * * *',
    onTick: function () {
        console.log(1);
    },
    start: true
});
job1.start();


var job2 = new CronJob('* 5 * * * *', function(){
        console.log(1);
    },
    true
);

It does not work.

How to run cron immediately after running the script?

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:15 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ncb000gtcommented, Oct 24, 2015

Sorry this took so long. I’ve been unable to do anything side project related for a bit. Hope this helps. I pushed another commit which makes the option name more clear. That should be available in master. I’ll try to release something soonish, once I’ve had a chance to take care of a few other issues.

0reactions
sayguncommented, Oct 7, 2015

+1

Read more comments on GitHub >

github_iconTop Results From Across the Web

4 Ways to Answer the Interview Question “When Can You Start?”
No, it's not a trick question—but you'll want to have a polished answer for “When can you start?” depending on your situation.
Read more >
How to Answer "When Can You Start?" in a Job Interview
The "When can you start?" question sounds promising, but answering carefully is VERY important. Here's how to have a great answer to this...
Read more >
How to Answer “When Can You Start Working?”
Interview answers to “when can you start?” 9 answer examples for job seekers who are currently employed or unemployed, plus mistakes to avoid....
Read more >
Interview Question: "When Are You Available to Start Work?"
Generally, the best response is to convey a willingness to start work as soon as possible. The employer will be thrilled with your...
Read more >
How bad is it to say that I can start immediately in a job ...
Hey, Recruiter here. It's not bad. BUT it depends how you say it. You never want to seem: Desperate; Needy; Careless (like you'll...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found