From bede0d43d4527cf82dbc89aaaa0b8c744994cb4a Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Fri, 15 Sep 2023 05:24:00 +0000 Subject: [PATCH 1/2] fix: add try catch block in the schedules task --- src/Appwrite/Platform/Tasks/Schedule.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Appwrite/Platform/Tasks/Schedule.php b/src/Appwrite/Platform/Tasks/Schedule.php index 6883ee30da..a136ee62b1 100644 --- a/src/Appwrite/Platform/Tasks/Schedule.php +++ b/src/Appwrite/Platform/Tasks/Schedule.php @@ -89,7 +89,12 @@ class Schedule extends Action $sum = count($results); $total = $total + $sum; foreach ($results as $document) { - $schedules[$document['resourceId']] = $getSchedule($document); + try { + $schedules[$document['resourceId']] = $getSchedule($document); + } catch (\Throwable $th) { + Console::error("Failed to load schedule for project {$document['projectId']} and function {$document['resourceId']}"); + Console::error($th->getMessage()); + } } $latestDocument = !empty(array_key_last($results)) ? $results[array_key_last($results)] : null; From 5b23a1c086c63379d1ddcc3b050a7ae6f638a4cf Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Fri, 15 Sep 2023 12:04:19 -0400 Subject: [PATCH 2/2] Update console --- .gitmodules | 2 +- app/console | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitmodules b/.gitmodules index 31a251570d..c3860453a8 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,4 +1,4 @@ [submodule "app/console"] path = app/console url = https://github.com/appwrite/console - branch = 3.0.4 + branch = 3.1.0 diff --git a/app/console b/app/console index 88b6d59051..1d604a0b0d 160000 --- a/app/console +++ b/app/console @@ -1 +1 @@ -Subproject commit 88b6d59051992ed86183ee83d77bf678d1cb73bf +Subproject commit 1d604a0b0d66846c9ff3f1496a5a8698c86ebb12