[PRISM] Exclude note_audit from enrich worker, keep LLM queue busy

This commit is contained in:
root committed 2026-11-24 11:43:06 +03:00
1 parent 83ad4fff79
commit 520976a487
1 file changed
+1 -1
+1 -1
View File
@@ -60,7 +60,7 @@ while True:
cur.execute("""
update prism.tasks t set status='running', worker='229-7b', started_at=now()
where t.id = (
select id from prism.tasks where status='pending' order by id limit 1 for update skip locked
select id from prism.tasks where status='pending' and kind <> 'note_audit' order by id limit 1 for update skip locked
) returning t.id, t.kind, t.source_id, t.model_id
""")
row = cur.fetchone()