Merge pull request #5047 from appwrite/feat-aggregate-stats

feat: add hamster script
This commit is contained in:
Christy Jacob 2023-01-26 18:26:48 +05:30 committed by GitHub
commit 28e6de81d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();
}
}
@ -210,6 +214,10 @@ class Hamster extends Action
}
$this->sendEmail($register);
$pools
->get('console')
->reclaim();
}
private function sendEmail(Registry $register)