feat: config-aware registry gating Qobuz on credentials; wire config into worker
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import time
|
||||
|
||||
from lyra_worker.claim import claim_next
|
||||
from lyra_worker.config import get_config
|
||||
from lyra_worker.db import wait_for_db
|
||||
from lyra_worker.pipeline import run_pipeline
|
||||
from lyra_worker.registry import build_adapters
|
||||
@@ -10,7 +11,8 @@ IDLE_SLEEP = 2.0
|
||||
|
||||
def run_forever() -> None:
|
||||
conn = wait_for_db()
|
||||
adapters = build_adapters()
|
||||
adapters = build_adapters(get_config(conn))
|
||||
print(f"worker: {len(adapters)} adapter(s) enabled: {[a.name for a in adapters]}", flush=True)
|
||||
print("worker: waiting for jobs", flush=True)
|
||||
try:
|
||||
while True:
|
||||
|
||||
Reference in New Issue
Block a user