log rotate task: adapt internal jobstate ID, set worker one to None for now

as we have only one logrotate task currently..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-11-02 19:30:49 +01:00
parent fe4cc5b1a1
commit 72aa1834dc
1 changed files with 2 additions and 2 deletions

View File

@ -491,7 +491,7 @@ async fn schedule_datastore_verify_jobs() {
async fn schedule_task_log_rotate() { async fn schedule_task_log_rotate() {
let worker_type = "logrotate"; let worker_type = "logrotate";
let job_id = "task_archive"; let job_id = "access-log_and_task-archive";
// schedule daily at 00:00 like normal logrotate // schedule daily at 00:00 like normal logrotate
let schedule = "00:00"; let schedule = "00:00";
@ -514,7 +514,7 @@ async fn schedule_task_log_rotate() {
if let Err(err) = WorkerTask::new_thread( if let Err(err) = WorkerTask::new_thread(
worker_type, worker_type,
Some(job_id.to_string()), None,
Authid::backup_auth_id().clone(), Authid::backup_auth_id().clone(),
false, false,
move |worker| { move |worker| {