mirror of
https://github.com/bellingcat/whisperbox-transcribe.git
synced 2026-06-13 05:58:35 +03:00
feat: configure celery to use rabbitmq broker (#58)
This commit is contained in:
@@ -9,4 +9,5 @@ def get_celery_binding() -> Celery:
|
||||
broker_connection_retry=False,
|
||||
broker_connection_retry_on_startup=False,
|
||||
)
|
||||
|
||||
return celery
|
||||
|
||||
@@ -52,6 +52,11 @@ class JobConfig(BaseModel):
|
||||
class JobMeta(BaseModel):
|
||||
"""(JSON) Metadata relating to a job's execution."""
|
||||
|
||||
attempts: int | None = Field(
|
||||
default=None,
|
||||
description="Number of processing attempts a job has taken.",
|
||||
)
|
||||
|
||||
error: str | None = Field(
|
||||
default=None,
|
||||
description="Will contain a descriptive error message if processing failed.",
|
||||
|
||||
Reference in New Issue
Block a user