From 8cb8c7060484b093e85eb095acfaa2eed2e40524 Mon Sep 17 00:00:00 2001 From: fneumann Date: Wed, 2 Oct 2024 14:09:33 +0200 Subject: [PATCH] Don't check the return value of the SOAP call This will be false in case of time-consuming background tasks. We have to keep the "fire and forget". --- .../Implementation/TaskManager/AsyncTaskManager.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/BackgroundTasks/Implementation/TaskManager/AsyncTaskManager.php b/src/BackgroundTasks/Implementation/TaskManager/AsyncTaskManager.php index c1f287451510..25a1e466e02a 100644 --- a/src/BackgroundTasks/Implementation/TaskManager/AsyncTaskManager.php +++ b/src/BackgroundTasks/Implementation/TaskManager/AsyncTaskManager.php @@ -68,12 +68,9 @@ public function run(Bucket $bucket): void ); try { - $result = $soap_client->call(self::CMD_START_WORKER, array( + $soap_client->call(self::CMD_START_WORKER, array( $session_id . '::' . $client_id, )); - if ($result === false) { - throw new ilException("SOAP call returned false"); - } } catch (\Throwable $t) { $DIC->logger()->bgtk()->warning($t->getMessage()); $DIC->logger()->bgtk()->warning("Calling webserver failed, fallback to sync version");