updates to multi region sync

This commit is contained in:
shimon
2024-06-04 17:32:52 +03:00
parent 126dd5a58a
commit f5fad93028
+3 -1
View File
@@ -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;