add finally

This commit is contained in:
fogelito 2025-09-10 12:43:37 +03:00
parent 83efc7c152
commit 95f49559d0

View file

@ -206,6 +206,8 @@ class StatsResources extends Action
$this->writeDocuments($dbForLogs, $project);
} catch (Throwable $th) {
call_user_func_array($this->logError, [$th, "StatsResources", "count_for_project_{$project->getId()}"]);
} finally {
$this->documents = [];
}
Console::info('End of count for: ' . $project->getId());