diff --git a/ops/scripts/prism_enrich_worker.py b/ops/scripts/prism_enrich_worker.py index b23ff88..5be7813 100644 --- a/ops/scripts/prism_enrich_worker.py +++ b/ops/scripts/prism_enrich_worker.py @@ -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()