server/gc_job: add 'to_stdout'
we will use this for the manual api call Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
committed by
Thomas Lamprecht
parent
79c9bf55b9
commit
c724f65805
@ -14,6 +14,7 @@ pub fn do_garbage_collection_job(
|
||||
datastore: Arc<DataStore>,
|
||||
auth_id: &Authid,
|
||||
schedule: Option<String>,
|
||||
to_stdout: bool,
|
||||
) -> Result<String, Error> {
|
||||
|
||||
let email = crate::server::lookup_user_email(auth_id.user());
|
||||
@ -25,7 +26,7 @@ pub fn do_garbage_collection_job(
|
||||
&worker_type,
|
||||
Some(store.clone()),
|
||||
auth_id.clone(),
|
||||
false,
|
||||
to_stdout,
|
||||
move |worker| {
|
||||
job.start(&worker.upid().to_string())?;
|
||||
|
||||
|
Reference in New Issue
Block a user