Skip to content

Commit 28e6de8

Browse files
Merge pull request appwrite#5047 from appwrite/feat-aggregate-stats
feat: add hamster script
2 parents 7261feb + 45a2268 commit 28e6de8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Appwrite/Platform/Tasks/Hamster.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,10 @@ public function action(Registry $register, Group $pools, Cache $cache, Database
193193
} catch (\Throwable $th) {
194194
throw $th;
195195
Console::error('Failed to update project ("' . $project->getId() . '") version with error: ' . $th->getMessage());
196+
} finally {
197+
$pools
198+
->get($db)
199+
->reclaim();
196200
}
197201
}
198202

@@ -210,6 +214,10 @@ public function action(Registry $register, Group $pools, Cache $cache, Database
210214
}
211215

212216
$this->sendEmail($register);
217+
218+
$pools
219+
->get('console')
220+
->reclaim();
213221
}
214222

215223
private function sendEmail(Registry $register)

0 commit comments

Comments
 (0)