0.12.0: FIFO job retention (job_keep), clear-finished button, vmm-ctl prune
This commit is contained in:
1 parent
5dc6bfb5a2
commit
a1b4e884da
9 files changed
+83
-3
No files matched your search
@@ -269,4 +269,9 @@ joblog($log, sprintf('finished: rc=%d, state=%s', $rc, $stateAfter));
|
||||
flock($lock, LOCK_UN);
|
||||
fclose($lock);
|
||||
fclose($log);
|
||||
|
||||
// FIFO retention: keep only the configured number of finished jobs
|
||||
$conf = vmm_config();
|
||||
vmm_job_prune((int)($conf['job_keep'] ?? 100));
|
||||
|
||||
exit(0);
|
||||
Reference in new issue
Block a user