fix: increase process and php execution timeout during PDF ingestion with Vision AI
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user