Skip to content

Commit 432057b

Browse files
committed
feat: use postgres based queue
1 parent ede5250 commit 432057b

File tree

5 files changed

+196
-319
lines changed

5 files changed

+196
-319
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ repos:
2727
- id: ruff-format
2828
types_or: [ python, pyi ]
2929
- repo: https://github.com/codespell-project/codespell
30-
rev: v2.4.0
30+
rev: v2.4.1
3131
hooks:
3232
- id: codespell
3333
exclude: "uv.lock|package.json|package-lock.json"

app/config/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
web_include_in_schema=False,
7474
queue_configs=[
7575
QueueConfig(
76-
dsn=settings.redis.URL,
76+
dsn=settings.db.URL.replace("postgresql+psycopg", "postgresql"),
7777
name="system-tasks",
7878
tasks=["app.domain.system.tasks.system_task", "app.domain.system.tasks.system_upkeep"],
7979
scheduled_tasks=[
@@ -86,7 +86,7 @@
8686
],
8787
),
8888
QueueConfig(
89-
dsn=settings.redis.URL,
89+
dsn=settings.db.URL.replace("postgresql+psycopg", "postgresql"),
9090
name="background-tasks",
9191
tasks=["app.domain.system.tasks.background_worker_task"],
9292
scheduled_tasks=[

0 commit comments

Comments
 (0)