mirror of
https://github.com/furyhawk/agent_delta.git
synced 2026-07-21 10:15:36 +00:00
15 lines
368 B
Python
15 lines
368 B
Python
"""Taskiq broker — shared across all task modules."""
|
|
|
|
from taskiq_redis import ListQueueBroker, RedisAsyncResultBackend
|
|
|
|
from app.core.config import settings
|
|
|
|
# Create Taskiq broker with Redis
|
|
broker = ListQueueBroker(
|
|
url=settings.TASKIQ_BROKER_URL,
|
|
).with_result_backend(
|
|
RedisAsyncResultBackend(
|
|
redis_url=settings.TASKIQ_RESULT_BACKEND,
|
|
)
|
|
)
|