From 7c3f74772e134dd22896c56eba630e0f35a6ede2 Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Thu, 26 Sep 2024 10:56:20 +0300 Subject: [PATCH] Ignoring errors which may occur when updating the IM thread during testing --- plan.inc.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/plan.inc.php b/plan.inc.php index 15c3643..626f84a 100644 --- a/plan.inc.php +++ b/plan.inc.php @@ -251,7 +251,15 @@ class Plan while(!$this->isOver()) { - $this->_updateMessengerThread(false); + try + { + //let's not exit the testing just because we couldn't update IM thread for some reason + $this->_updateMessengerThread(false); + } + catch(\Throwable $e) + { + err("Task #{$task->run_id} IM thread update error: {$e} *{$task->device}*..."); + } yield Amp\delay((int)($this->session->conf->sleep_time*1000));