Duplication function run again when use CronJobManager?
up vote
0
down vote
favorite
I'm using CronJobManager in nodejs and when it's running :
2018/11/19 16:39:37
2018/11/19 16:39:38
2018/11/19 16:39:38
2018/11/19 16:39:38
And this my code :
function again_sche() {
var t = Date.now()
var z = 1*1000
var des = new Date(t+z);
var j = new CronJobManager(
"TEST",
des,
function () {
var d = new Date();
var list = schedule.scheduledJobs;
var timeInMss = moment(d).format("YYYY/MM/DD HH:mm:ss")
console.log(timeInMss)
again_sche();
},
{
start:true
}
);
node.js
add a comment |
up vote
0
down vote
favorite
I'm using CronJobManager in nodejs and when it's running :
2018/11/19 16:39:37
2018/11/19 16:39:38
2018/11/19 16:39:38
2018/11/19 16:39:38
And this my code :
function again_sche() {
var t = Date.now()
var z = 1*1000
var des = new Date(t+z);
var j = new CronJobManager(
"TEST",
des,
function () {
var d = new Date();
var list = schedule.scheduledJobs;
var timeInMss = moment(d).format("YYYY/MM/DD HH:mm:ss")
console.log(timeInMss)
again_sche();
},
{
start:true
}
);
node.js
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm using CronJobManager in nodejs and when it's running :
2018/11/19 16:39:37
2018/11/19 16:39:38
2018/11/19 16:39:38
2018/11/19 16:39:38
And this my code :
function again_sche() {
var t = Date.now()
var z = 1*1000
var des = new Date(t+z);
var j = new CronJobManager(
"TEST",
des,
function () {
var d = new Date();
var list = schedule.scheduledJobs;
var timeInMss = moment(d).format("YYYY/MM/DD HH:mm:ss")
console.log(timeInMss)
again_sche();
},
{
start:true
}
);
node.js
I'm using CronJobManager in nodejs and when it's running :
2018/11/19 16:39:37
2018/11/19 16:39:38
2018/11/19 16:39:38
2018/11/19 16:39:38
And this my code :
function again_sche() {
var t = Date.now()
var z = 1*1000
var des = new Date(t+z);
var j = new CronJobManager(
"TEST",
des,
function () {
var d = new Date();
var list = schedule.scheduledJobs;
var timeInMss = moment(d).format("YYYY/MM/DD HH:mm:ss")
console.log(timeInMss)
again_sche();
},
{
start:true
}
);
node.js
node.js
asked yesterday
Newpie
133
133
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53372019%2fduplication-function-run-again-when-use-cronjobmanager%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown