handling errors
This commit is contained in:
parent
87415c3d95
commit
71eabfff0d
|
@ -300,6 +300,7 @@ $cli
|
|||
],
|
||||
];
|
||||
foreach ($collections as $collection => $options) {
|
||||
try {
|
||||
$dbForProject->setNamespace("project_{$id}_{$options['namespace']}");
|
||||
$count = $dbForProject->count($collection);
|
||||
$dbForProject->setNamespace("project_{$id}_internal");
|
||||
|
@ -355,6 +356,9 @@ $cli
|
|||
]));
|
||||
}
|
||||
}
|
||||
} catch(\Exception $e) {
|
||||
Console::warning("Failed to save database counters data for project {$collection}");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue