Files
Investidor-V2/tools/portal-stability-queue.php
T
nala 287e991486
tests / ci (push) Waiting to run
oportunidades 7
2026-10-13 11:40:29 +02:00

8 lines
681 B
PHP

<?php
// Process only the isolated consumer QA queue; never bootstrap an active connection.
$root=dirname(__DIR__);$plan=json_decode(file_get_contents($root.'/storage/app/private/investmoz-v2/portal-audit/portal-stability-latest.json'),true,512,JSON_THROW_ON_ERROR);
putenv('STABILITY_QA_MODE=consumers');$app=require $plan['source'].'/tools/portal-stability-runtime.php';
$options=['command'=>'queue:work','--tries'=>1,'--timeout'=>60,'--no-interaction'=>true];
if(in_array('--continuous',$argv,true)){$options['--sleep']=1;$options['--max-time']=3600;}else{$options['--stop-when-empty']=true;}
exit($app->handleCommand(new Symfony\Component\Console\Input\ArrayInput($options)));