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:
parent
fe4cc5b1a1
commit
72aa1834dc
|
@ -491,7 +491,7 @@ async fn schedule_datastore_verify_jobs() {
|
|||
async fn schedule_task_log_rotate() {
|
||||
|
||||
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
|
||||
let schedule = "00:00";
|
||||
|
@ -514,7 +514,7 @@ async fn schedule_task_log_rotate() {
|
|||
|
||||
if let Err(err) = WorkerTask::new_thread(
|
||||
worker_type,
|
||||
Some(job_id.to_string()),
|
||||
None,
|
||||
Authid::backup_auth_id().clone(),
|
||||
false,
|
||||
move |worker| {
|
||||
|
|
Loading…
Reference in New Issue