mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 08:28:42 +00:00
Merge pull request #5047 from appwrite/feat-aggregate-stats
feat: add hamster script
This commit is contained in:
commit
28e6de81d4
1 changed files with 8 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue