mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +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) {
|
} catch (\Throwable $th) {
|
||||||
throw $th;
|
throw $th;
|
||||||
Console::error('Failed to update project ("' . $project->getId() . '") version with error: ' . $th->getMessage());
|
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);
|
$this->sendEmail($register);
|
||||||
|
|
||||||
|
$pools
|
||||||
|
->get('console')
|
||||||
|
->reclaim();
|
||||||
}
|
}
|
||||||
|
|
||||||
private function sendEmail(Registry $register)
|
private function sendEmail(Registry $register)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue