更新
This commit is contained in:
@@ -53,7 +53,9 @@ final class PrescriptionAiWork extends Command
|
||||
try {
|
||||
if (PrescriptionAiStore::enabled()) {
|
||||
$worked = $lane === 'prepare' ? $worker->prepareOne() : $worker->runOne($lane);
|
||||
if ($lane === 'prepare' && time() >= $sweepAt) {
|
||||
// Source and prescription sweeps rebuild whole contexts, so they only run while
|
||||
// nothing is waiting: a prescription saved right now must never queue behind them.
|
||||
if ($lane === 'prepare' && !$worked && time() >= $sweepAt) {
|
||||
$sweep = $worker->refreshSources($sourceCursor);
|
||||
$sourceCursor = $sweep['selected'] > 0 ? $sweep['last_id'] : 0;
|
||||
$rx = $worker->reconcile($rxCursor);
|
||||
|
||||
Reference in New Issue
Block a user