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:
Dominik Csapak
2020-11-02 12:34:37 +01:00
committed by Thomas Lamprecht
parent 79c9bf55b9
commit c724f65805
2 changed files with 3 additions and 2 deletions

View File

@ -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())?;