fix: worker waits for schema before claiming; npm ci for reproducible builds
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import time
|
||||
|
||||
from lyra_worker.claim import claim_next
|
||||
from lyra_worker.db import connect
|
||||
from lyra_worker.db import wait_for_db
|
||||
from lyra_worker.pipeline import run_pipeline
|
||||
|
||||
IDLE_SLEEP = 2.0
|
||||
@@ -9,7 +9,7 @@ STAGE_DELAY = 1.0 # visible progress in the UI
|
||||
|
||||
|
||||
def run_forever() -> None:
|
||||
conn = connect()
|
||||
conn = wait_for_db()
|
||||
print("worker: waiting for jobs", flush=True)
|
||||
try:
|
||||
while True:
|
||||
|
||||
Reference in New Issue
Block a user