mirror of
https://github.com/bellingcat/whisperbox-transcribe.git
synced 2026-06-12 21:48:35 +03:00
refactor: use Depends for settings and session_local (#59)
This commit is contained in:
@@ -7,8 +7,8 @@ from app.shared.celery import get_celery_binding
|
||||
class TaskQueue:
|
||||
celery: Celery
|
||||
|
||||
def __init__(self) -> None:
|
||||
self.celery = get_celery_binding()
|
||||
def __init__(self, broker_url: str) -> None:
|
||||
self.celery = get_celery_binding(broker_url=broker_url)
|
||||
|
||||
def queue_task(self, job: models.Job):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user