1
0
Fork 0
mirror of synced 2024-07-04 14:10:33 +12:00

Merge pull request #5085 from appwrite/automate-hamster-script

feat: add hamster background task
This commit is contained in:
Christy Jacob 2023-02-06 19:45:22 +05:30 committed by GitHub
commit 72d48eddee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -149,7 +149,7 @@ class Hamster extends Action
Console::title('Cloud Hamster V1');
Console::success(APP_NAME . ' cloud hamster process v1 has started');
$interval = (int) App::getEnv('_APP_USAGE_AGGREGATION_INTERVAL', '30'); // 30 seconds (by default)
$interval = (int) App::getEnv('_APP_HAMSTER_INTERVAL', '30'); // 30 seconds (by default)
Console::loop(function () use ($register, $pools, $cache, $dbForConsole, $interval) {