fix: increase process and php execution timeout during PDF ingestion with Vision AI

This commit is contained in:
jeremy bayse
2026-06-24 07:00:26 +02:00
parent fa38396479
commit d97281233f
+5 -2
View File
@@ -208,8 +208,11 @@ class DocumentIngestionService
$mistralKey = config('services.mistral.key') ?? env('MISTRAL_API_KEY', '');
$visionFlag = $enableVision ? '1' : '0';
// Run Python script
$result = Process::run([
// Set execution time limit for PHP to 600 seconds
@set_time_limit(600);
// Run Python script with a 600-second timeout
$result = Process::timeout(600)->run([
'python',
$scriptPath,
$filePath,