feat: update migration task
This commit is contained in:
parent
9a12ab8f8a
commit
28c61acec6
2 changed files with 7 additions and 5 deletions
|
@ -99,8 +99,8 @@ class CalcTierStats extends Action
|
|||
|
||||
$projects = [$console];
|
||||
$count = 0;
|
||||
$limit = 30;
|
||||
$sum = 30;
|
||||
$limit = 100;
|
||||
$sum = 100;
|
||||
$offset = 0;
|
||||
while (!empty($projects)) {
|
||||
foreach ($projects as $project) {
|
||||
|
|
|
@ -79,8 +79,8 @@ class GetMigrationStats extends Action
|
|||
|
||||
$projects = [$console];
|
||||
$count = 0;
|
||||
$limit = 30;
|
||||
$sum = 30;
|
||||
$limit = 100;
|
||||
$sum = 100;
|
||||
$offset = 0;
|
||||
while (!empty($projects)) {
|
||||
foreach ($projects as $project) {
|
||||
|
@ -123,7 +123,9 @@ class GetMigrationStats extends Action
|
|||
return array_values($result);
|
||||
}, $migrations);
|
||||
|
||||
if(!empty($migrations)) {
|
||||
$csv->insertAll($migrations);
|
||||
}
|
||||
} catch (\Throwable $th) {
|
||||
Console::error('Failed on project ("' . $project->getId() . '") with error on File: ' . $th->getFile() . ' line no: ' . $th->getline() . ' with message: ' . $th->getMessage());
|
||||
} finally {
|
||||
|
|
Loading…
Reference in a new issue