diff --git a/taskiq/result_backends/dummy.py b/taskiq/result_backends/dummy.py index 50550f80..e9d427b5 100644 --- a/taskiq/result_backends/dummy.py +++ b/taskiq/result_backends/dummy.py @@ -1,3 +1,4 @@ +import warnings from typing import Any, TypeVar from taskiq.abc.result_backend import AsyncResultBackend @@ -41,6 +42,11 @@ async def get_result(self, task_id: str, with_logs: bool = False) -> Any: :param with_logs: wether to fetch logs. :returns: TaskiqResult. """ + warnings.warn( + "No result backend configured. Returning dummy result...", + stacklevel=2, + ) + return TaskiqResult( is_err=False, log=None,