calculating users per project task
This commit is contained in:
parent
e79cb913ed
commit
5163ce7cc9
1 changed files with 34 additions and 34 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue