add chunk limiter

This commit is contained in:
team 1
2026-02-16 15:35:05 +01:00
parent feff95ffe5
commit a6435f4ee3
3 changed files with 4 additions and 2 deletions

View File

@@ -4,6 +4,7 @@
namespace App\Controller\Admin;
use App\Index\IndexMetaManager;
use App\Ingest\IngestFlow;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Attribute\Route;
@@ -20,7 +21,7 @@ final class DashboardController extends AbstractController
public function dashboard(IndexMetaManager $metaManager): Response
{
$chunkCount = $metaManager->getRuntimeChunkCount();
$limit = 120000;
$limit = IngestFlow::CHUNK_LIMIT_HARD;
return $this->render('admin/dashboard/index.html.twig', [
'chunkCount' => $chunkCount,

View File

@@ -374,6 +374,7 @@ class DocumentController extends AbstractController
@unlink($params->get('mto.knowledge.vector_index'));
@unlink($params->get('mto.knowledge.vector_index_meta'));
@unlink($params->get('mto.knowledge.index_meta'));
@unlink($params->get('mto.runtime.meta'));
exec('rm -rf ' . $params->get('mto.knowledge.upload'));
$sql = '