]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/dird/jobq.c
Pool + label cleanups from bug reports
[bacula/bacula] / bacula / src / dird / jobq.c
index 8040ed77e0bef02a839ee91b431492dc592df1cd..785e3fd8632e5450f90bbe2588f0e8f95f39081b 100755 (executable)
@@ -458,6 +458,7 @@ void *jobq_server(void *arg)
             jcr->JobStatus != JS_Canceled && 
             jcr->job->RescheduleTimes > 0 && 
             jcr->reschedule_count < jcr->job->RescheduleTimes) {
+            char dt[50];
 
             /*
              * Reschedule this job by cleaning it up, but
@@ -467,6 +468,9 @@ void *jobq_server(void *arg)
            jcr->sched_time = time(NULL) + jcr->job->RescheduleInterval;
             Dmsg2(300, "Rescheduled Job %s to re-run in %d seconds.\n", jcr->Job,
               (int)jcr->job->RescheduleInterval);
+           bstrftime(dt, sizeof(dt), time(NULL));
+            Jmsg(jcr, M_INFO, 0, _("Rescheduled Job %s at %s to re-run in %d seconds.\n"),
+              jcr->Job, dt, (int)jcr->job->RescheduleInterval);
            jcr->JobStatus = JS_Created; /* force new status */
            dird_free_jcr(jcr);          /* partial cleanup old stuff */
            if (jcr->JobBytes == 0) {