Skip to content

Commit

Permalink
Don't check the return value of the SOAP call
Browse files Browse the repository at this point in the history
This will be false in case of time-consuming background tasks.
We have to keep the "fire and forget".
  • Loading branch information
fneumann authored and chfsx committed Dec 17, 2024
1 parent a63fd83 commit 8cb8c70
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 8cb8c70

Please sign in to comment.