taskiq icon indicating copy to clipboard operation
taskiq copied to clipboard

Fix InMemoryBroker to use startup and shutdown middleware hooks

Open hawang-wish opened this issue 1 year ago • 0 comments

Hi,

This is the second patch I would like to introduce. Previously, we overrode the startup and shutdown to ensure both client and worker events would be handled properly. However, this made InMemoryBroker unable to handle startup and shutdown middleware hooks.

This change brings the handling of startup and shutdown middleware hooks back. Feel free to let me know if you have any concerns or suggestions!

hawang-wish avatar Aug 29 '24 07:08 hawang-wish