taskiq icon indicating copy to clipboard operation
taskiq copied to clipboard

fix: sync decorators

Open Sobes76rus opened this issue 7 months ago • 1 comments

use case

@broker.task()
@validate_call()
async def task(arg1: str) -> None: ...

so, the thing is that pydantic's validator_call is syncronious decorator which returns awaitable future after call right now receiver can't work with sync decorators on async functions

Sobes76rus avatar Jul 19 '24 15:07 Sobes76rus