Skip to content

Commit 72d48ed

Browse files
Merge pull request appwrite#5085 from appwrite/automate-hamster-script
feat: add hamster background task
2 parents ef20d5f + 5c1adf1 commit 72d48ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Appwrite/Platform/Tasks/Hamster.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public function action(Registry $register, Group $pools, Cache $cache, Database
149149
Console::title('Cloud Hamster V1');
150150
Console::success(APP_NAME . ' cloud hamster process v1 has started');
151151

152-
$interval = (int) App::getEnv('_APP_USAGE_AGGREGATION_INTERVAL', '30'); // 30 seconds (by default)
152+
$interval = (int) App::getEnv('_APP_HAMSTER_INTERVAL', '30'); // 30 seconds (by default)
153153

154154
Console::loop(function () use ($register, $pools, $cache, $dbForConsole, $interval) {
155155

0 commit comments

Comments
 (0)