From b1f624bc0d7a8dc6d0d11d3d3b03a6141bc667f5 Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Thu, 26 Jan 2023 18:24:32 +0530 Subject: [PATCH] feat: add hamster script --- src/Appwrite/Platform/Tasks/Hamster.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Appwrite/Platform/Tasks/Hamster.php b/src/Appwrite/Platform/Tasks/Hamster.php index 145cbd469d..08646da983 100644 --- a/src/Appwrite/Platform/Tasks/Hamster.php +++ b/src/Appwrite/Platform/Tasks/Hamster.php @@ -193,6 +193,10 @@ class Hamster extends Action } catch (\Throwable $th) { throw $th; Console::error('Failed to update project ("' . $project->getId() . '") version with error: ' . $th->getMessage()); + } finally { + $pools + ->get($db) + ->reclaim(); } }