tasks results

Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
This commit is contained in:
Marc 'risson' Schmitt
2025-06-23 17:27:58 +02:00
parent e5b86c3578
commit a12e991798
4 changed files with 31 additions and 10 deletions

View File

@ -66,6 +66,18 @@ class Conf:
# 30 days
return self.conf.get("task_expiration", 60 * 60 * 24 * 30)
@property
def result_backend(self) -> str:
return self.conf.get("result_backend", "django_dramatiq_postgres.results.PostgresBackend")
@property
def result_backend_args(self) -> tuple[Any]:
return self.conf.get("result_backend_args", ())
@property
def result_backend_kwargs(self) -> dict[str, Any]:
return self.conf.get("result_backend_kwargs", {})
@property
def autodiscovery(self) -> dict[str, Any]:
autodiscovery = {