From 5c1adf1f687aa9e2d425ce8734e51ab115be1ddb Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Mon, 6 Feb 2023 19:44:47 +0530 Subject: [PATCH] feat: add hamster background task --- src/Appwrite/Platform/Tasks/Hamster.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Appwrite/Platform/Tasks/Hamster.php b/src/Appwrite/Platform/Tasks/Hamster.php index 5e300e686c..a2b4793e5a 100644 --- a/src/Appwrite/Platform/Tasks/Hamster.php +++ b/src/Appwrite/Platform/Tasks/Hamster.php @@ -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) {