Merge pull request #10969 from appwrite/fix-scheduler-base

Scheduler base patch chunks
This commit is contained in:
Luke B. Silver 2025-12-16 15:36:54 +00:00 committed by GitHub
commit eabe06d981
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -219,6 +219,7 @@ abstract class ScheduleBase extends Action
if (!empty($projectIdsToLoad)) {
$projectIdsToLoad = array_values($projectIdsToLoad);
$batchSize = 10_000;
$batchSize = 499;
$batches = array_chunk($projectIdsToLoad, $batchSize);
$projectsLoadStart = microtime(true);