feat: configure celery to use rabbitmq broker (#58)

This commit is contained in:
Felix Spöttel
2023-08-17 22:45:51 +02:00
committed by GitHub
parent 423018e92a
commit 504975a07a
12 changed files with 74 additions and 56 deletions

View File

@@ -9,4 +9,5 @@ def get_celery_binding() -> Celery:
broker_connection_retry=False,
broker_connection_retry_on_startup=False,
)
return celery

View File

@@ -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.",