mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
updates to multi region sync
This commit is contained in:
@@ -33,10 +33,12 @@ class EdgeSync extends Action
|
||||
Console::title('Edge-sync V1');
|
||||
Console::success(APP_NAME . ' Edge-sync v1 has started');
|
||||
|
||||
$interval = (int) App::getEnv('_APP_SYNC_EDGE_INTERVAL', '180');
|
||||
$interval = (int) App::getEnv('_APP_SYNC_EDGE_INTERVAL', '60');
|
||||
Console::loop(function () use ($interval, $dbForConsole, $queueForSyncOutDelivery) {
|
||||
$time = DateTime::now();
|
||||
|
||||
Console::success("[{$time}] New task every {$interval} seconds");
|
||||
|
||||
$chunk = 0;
|
||||
$limit = 500;
|
||||
$sum = $limit;
|
||||
|
||||
Reference in New Issue
Block a user