Skip to content

TaskiqDeprecationWarning: use with_result_backend #71

Open
@tito

Description

@tito

Using taskiq 0.11.7 and taskiq-redis 1.0.2, i have this deprecation warning showing up:

/.venv/lib/python3.10/site-packages/taskiq_redis/redis_broker.py:49: TaskiqDeprecationWarning: Setting result backend with constructor is deprecated. Please use `with_result_backend` instead.

The code that triggered it:

from taskiq_redis import ListQueueBroker, RedisAsyncResultBackend

from app.core.config import settings

redis_async_result = RedisAsyncResultBackend(redis_url=settings.REDIS_URL)

broker = ListQueueBroker(
    url=settings.REDIS_URL,
    result_backend=redis_async_result,
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions