1
0
Fork 0
mirror of synced 2024-07-08 07:55:48 +12:00

delete unnecessary project collections task

This commit is contained in:
shimon 2023-06-14 19:01:34 +03:00
parent f2705c30a3
commit 3286279d3c

View file

@ -60,8 +60,8 @@ class DeleteProjectCollections extends Action
$projects = [$console];
$count = 0;
$limit = 30;
$sum = 30;
$limit = 50;
$sum = 50;
$offset = 0;
while (!empty($projects)) {
foreach ($projects as $project) {
@ -73,7 +73,7 @@ class DeleteProjectCollections extends Action
continue;
}
Console::info("Getting stats for {$project->getId()}");
Console::info("Deleting collections for {$project->getId()}");
try {
$db = $project->getAttribute('database');