You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -281,7 +286,7 @@ async function needsExecution(current_job){
281
286
varyoungest_next=newDate("9999");//hight start date, year 9999
282
287
for(var_idxincrons){
283
288
var_cur_cron=crons[_idx];
284
-
var_interval=parser.parseExpression(_cur_cron,{//parseExpression func needs last_start_date to calcualte next interval
289
+
var_interval=parser.parseExpression(_cur_cron,{//parseExpression func needs last_start_date to calcualte next interval, but why can it not work with current date?
285
290
currentDate: last_start_date,
286
291
iterator: false
287
292
});
@@ -333,7 +338,7 @@ async function needsExecution(current_job){
333
338
334
339
if("last_job_id"incurrent_job){
335
340
if(current_job["last_job_id"]!=""){
336
-
updateScheduledJob(current_job["id"],"last_message","Detected last Jobid exists, checking if Jobid is active");
341
+
updateScheduledJob(current_job["id"],"last_message","Detected last Jobid exists, checking if Jobid is active "+formatDate());
updateScheduledJob(current_job["id"],"last_message","Last job is still active");
350
+
updateScheduledJob(current_job["id"],"last_message","Last job is still active "+formatDate());
346
351
logger.log("last_job_id is still active")
347
352
returnfalse;
348
353
}else{
@@ -352,7 +357,7 @@ async function needsExecution(current_job){
352
357
}
353
358
}catch(ex){
354
359
logger.error("Could not get information about currently running job, resetting las_job_id",ex);
355
-
updateScheduledJob(current_job["id"],"last_message","Reset last job id due to error getting job details: "+current_job["last_job_id"]+ex);
360
+
updateScheduledJob(current_job["id"],"last_message","Reset last job id due to error getting job details: "+current_job["last_job_id"]+ex++formatDate());
0 commit comments