BUGFIX: also remove temp-vars when not manual

This commit is contained in:
Jeroen De Meerleer 2022-09-26 13:32:00 +02:00
parent 53424c50bf
commit 159ec33a22
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
1 changed files with 5 additions and 3 deletions

View File

@ -506,10 +506,12 @@ class JobRepository extends EntityRepository
} while ($nextrun < time());
$job->setNextrun($nextrun);
$this->deleteTempVar($job);
$em->persist($job);
$em->flush();
}
$this->deleteTempVar($job);
$em->persist($job);
$em->flush();
return ['job_id' => $job->getId(), 'exitcode' => $result['exitcode'], 'timestamp' =>floor($starttime), 'runtime' => $runtime, 'output' => (string)$result['output'], 'flags' => implode("", $flags)];
}