This commit is contained in:
Your Name
2026-09-21 10:26:14 +08:00
parent bbe3e870a1
commit dbf474ddd7
67 changed files with 10636 additions and 279 deletions
+8 -5
View File
@@ -10,11 +10,14 @@ return [
'lease_seconds' => 600,
'max_attempts' => 3,
'max_manual_retries' => 2,
'daily_model_tasks' => 200,
'daily_patient_batches' => 10,
// Concurrent tasks allowed per model. It only takes effect when that many consumer
// processes run for the lane (php think prescription-ai:work --lane=<model>).
'max_parallel_per_model' => 2,
'daily_model_tasks' => (int) env('prescription_analysis.DAILY_MODEL_TASKS', 200),
// Analyses of one prescription per day. Regenerating after each change is the normal way to
// review a case, so this is a budget guard, not a correctness limit.
'daily_patient_batches' => (int) env('prescription_analysis.DAILY_PATIENT_BATCHES', 20),
// Tasks that may run at the same time for one model, so several prescriptions are analysed
// concurrently instead of queueing behind each other. Each running task needs its own consumer
// process: start this many `php think prescription-ai:work --lane=<model>` instances.
'max_parallel_per_model' => max(1, (int) env('prescription_analysis.MAX_PARALLEL_PER_MODEL', 4)),
'refresh_recent_days' => 7,
'auto_refresh_sources' => true,
'auto_refresh_prescription' => true,