From ac6b034064365ab15924d85e48477965148d5f63 Mon Sep 17 00:00:00 2001 From: Bozana Bokan Date: Thu, 28 Mar 2024 14:54:45 +0100 Subject: [PATCH] pkp/pkp-lib9834 allow further usage log file processing for successfully dispatched files if a file failed --- classes/task/PKPUsageStatsLoader.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/classes/task/PKPUsageStatsLoader.php b/classes/task/PKPUsageStatsLoader.php index acaed2ac8f4..a17bc033266 100644 --- a/classes/task/PKPUsageStatsLoader.php +++ b/classes/task/PKPUsageStatsLoader.php @@ -107,9 +107,6 @@ protected function executeActions(): bool $this->autoStage(); } $processFilesResult = parent::executeActions(); - if (!$processFilesResult) { - return false; - } $site = Application::get()->getRequest()->getSite(); $jobs = []; @@ -133,7 +130,7 @@ protected function executeActions(): bool ), ScheduledTaskHelper::SCHEDULED_TASK_MESSAGE_TYPE_NOTICE); } - return (!$processingDirError); + return (!$processingDirError && $processFilesResult); } /**