From 1e73b12cd9acce5ae20c5a03f44615fb6e6a6658 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Mon, 4 May 2026 10:09:13 +0200 Subject: [PATCH] fix: Chunk group migration Avoid job arguments can't exceed 4000 characters error Fix #960 Signed-off-by: Carl Schwan --- lib/GroupManager.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/GroupManager.php b/lib/GroupManager.php index 233b21943..44e85a192 100644 --- a/lib/GroupManager.php +++ b/lib/GroupManager.php @@ -243,7 +243,9 @@ protected function evaluateGroupMigrations(array $groups): void { return; } - $this->jobList->add(MigrateGroups::class, ['gids' => $groups]); + foreach (array_chunk($groups, 30) as $chunk) { + $this->jobList->add(MigrateGroups::class, ['gids' => $chunk]); + } } protected function isGroupInTransitionList(string $groupId): bool {