upid: use systemd escape to decode/encode the worker_id

This way we can store values containing "/" and ":".
This commit is contained in:
Dietmar Maurer
2020-10-22 08:24:37 +02:00
parent 5eb9dd0c8a
commit 4ebda996e5
7 changed files with 22 additions and 15 deletions

View File

@ -628,7 +628,7 @@ async fn schedule_task_log_rotate() {
parse_calendar_event, compute_next_event};
let worker_type = "logrotate";
let job_id = "task-archive";
let job_id = "task_archive";
let last = match jobstate::last_run_time(worker_type, job_id) {
Ok(time) => time,