1 This patch fixes bug #1012 where the job is canceled because
2 of Max Run Time exceeded when the job has not yet started.
4 Apply it to 2.2.6 or any prior 2.2.x version with:
7 patch -p0 <2.2.6-maxruntime.patch
8 ./configure <your-options>
15 ===================================================================
16 --- src/dird/job.c (revision 5979)
17 +++ src/dird/job.c (working copy)
20 static bool job_check_maxruntime(JCR *control_jcr, JCR *jcr)
22 - if (jcr->job->MaxRunTime == 0 || job_canceled(jcr)) {
23 + if (jcr->job->MaxRunTime == 0 || job_canceled(jcr) || jcr->JobStatus == JS_Created) {
26 if ((watchdog_time - jcr->start_time) < jcr->job->MaxRunTime) {
30 jcr->JobType = job->JobType;
31 + jcr->JobStatus = JS_Created;
32 switch (jcr->JobType) {