1
0
Fork 0
mirror of synced 2024-10-01 01:37:56 +13:00

calculating users per project task

This commit is contained in:
shimon 2023-05-23 19:46:45 +03:00
parent e79cb913ed
commit 5163ce7cc9

View file

@ -73,6 +73,7 @@ class UsersCalc extends Action
$offset = 0;
while (!empty($projects)) {
foreach ($projects as $project) {
/**
* Skip user projects with id 'console'
*/
@ -121,8 +122,11 @@ class UsersCalc extends Action
$offset = $offset + $limit;
$count = $count + $sum;
Console::log('Iterated through ' . ($count - 1) . '/' . $totalProjects . ' projects...');
}
Console::log('Iterated through ' . $count - 1 . '/' . $totalProjects . ' projects...');
$pools
->get('console')
->reclaim();
/** @var PHPMailer $mail */
$mail = $register->get('smtp');
@ -156,8 +160,4 @@ class UsersCalc extends Action
Console::error("Message could not be sent. Mailer Error: {$mail->ErrorInfo}");
}
}
$pools
->get('console')
->reclaim();
}
}