Skip to content

Commit

Permalink
Fix #42183: Async background tasks fail silently
Browse files Browse the repository at this point in the history
  • Loading branch information
fneumann committed Sep 30, 2024
1 parent aefe6da commit 267738f
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,14 @@ public function run(Bucket $bucket): void
)
: '';
try {
$soap_client->call(self::CMD_START_WORKER, array(
$result = $soap_client->call(self::CMD_START_WORKER, array(
$session_id . '::' . $client_id,
));
if ($result === false) {
$DIC->logger()->root()->info("[BT] Calling Webserver returned false, fallback to sync version");
$sync_manager = new SyncTaskManager($this->persistence);
$sync_manager->run($bucket);
}
} catch (\Throwable $t) {
$DIC->logger()->root()->info("[BT] Calling Webserver failed, fallback to sync version");
$sync_manager = new SyncTaskManager($this->persistence);
Expand Down

0 comments on commit 267738f

Please sign in to comment.