src/bin/proxmox-backup-proxy.rs: add test if last prune job is still running
This commit is contained in:
parent
04ad7bc436
commit
a8d7033cb2
@ -385,12 +385,15 @@ async fn schedule_datastore_prune() {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
//fixme: if last_prune_job_stzill_running { continue; }
|
|
||||||
|
|
||||||
let worker_type = "prune";
|
let worker_type = "prune";
|
||||||
|
|
||||||
let last = match lookup_last_worker(worker_type, &store) {
|
let last = match lookup_last_worker(worker_type, &store) {
|
||||||
Ok(Some(upid)) => upid.starttime,
|
Ok(Some(upid)) => {
|
||||||
|
if proxmox_backup::server::worker_is_active_local(&upid) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
upid.starttime
|
||||||
|
}
|
||||||
Ok(None) => 0,
|
Ok(None) => 0,
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
eprintln!("lookup_last_job_start failed: {}", err);
|
eprintln!("lookup_last_job_start failed: {}", err);
|
||||||
|
Loading…
Reference in New Issue
Block a user