Skip to content

Commit

Permalink
Add running jobs scheduled time in director status
Browse files Browse the repository at this point in the history
When a job fails and 'Reschedule On Error' is set to yes the job
would be rescheduled. Now when checking status of director with
bconsole it also shows what time it was rescheduled to.
  • Loading branch information
chrfle authored and Marco van Wieringen committed Feb 17, 2015
1 parent 0cfa2c9 commit 2a70130
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/dird/ua_status.c
Expand Up @@ -1051,7 +1051,16 @@ static void list_running_jobs(UAContext *ua)
msg = _("is waiting on max total jobs");
break;
case JS_WaitStartTime:
msg = _("is waiting for its start time");
emsg = (char *) get_pool_memory(PM_FNAME);
if (jcr->sched_time) {
char dt[MAX_TIME_LENGTH];
bstrftime_nc(dt, sizeof(dt), jcr->sched_time);
Mmsg(emsg, _("is waiting for its start time at %s"), dt);
} else {
Mmsg(emsg, _("is waiting for its start time"));
}
pool_mem = true;
msg = emsg;
break;
case JS_WaitPriority:
msg = _("is waiting for higher priority jobs to finish");
Expand Down

0 comments on commit 2a70130

Please sign in to comment.