s3rius / FastAPI-template

Feature rich robust FastAPI template.
MIT License
1.79k stars 161 forks source link

fix: update deprecated usage of taskiq_redis broker #169

Closed nicognaW closed 1 year ago

nicognaW commented 1 year ago

See https://github.com/taskiq-python/taskiq/commit/2c28eefaa1a13c45afd409c9bc29a1ada50cce14.

Not sure if the code is the best practice, please review & edit.

nicognaW commented 1 year ago

@s3rius There seems to be a problem with the action, please force stop it.

s3rius commented 1 year ago

Hi there. Thanks for your PR. Indeed, it's needed to use builder API instead of parameters. But it should look like this.

broker = MyBroker().with_result_backend(MyResultBackend())
s3rius commented 1 year ago

Can you please update this line as well?