From 0085410b6cbaf9450edfccee08152b40e8760ad4 Mon Sep 17 00:00:00 2001 From: upstream Date: Sat, 3 Oct 2026 15:38:20 +0000 Subject: [PATCH] Upstream proxmox-git/pve-manager state of the touched files before ac0c87dd37 --- PVE/Jobs.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/PVE/Jobs.pm b/PVE/Jobs.pm index 75f8706..40caf25 100644 --- a/PVE/Jobs.pm +++ b/PVE/Jobs.pm @@ -109,15 +109,13 @@ my $get_job_task_status = sub { my ($task, $filename) = PVE::Tools::upid_decode($state->{upid}, 1); die "unable to parse worker upid - $state->{upid}\n" if !$task; + die "no such task\n" if !-f $filename; my $pstart = PVE::ProcFSTools::read_proc_starttime($task->{pid}); if ($pstart && $pstart == $task->{pstart}) { return; # still running } - # the task log might be gone, e.g. after a crash, do not let that block the job forever - return "task log not found" if !-f $filename; - return PVE::Tools::upid_read_status($state->{upid}); };