PaulGilmartin / django-pgpubsub

A distributed task processing framework for Django built on top of the Postgres NOTIFY/LISTEN protocol.
Other
245 stars 12 forks source link

Fixed listening with `--channels` argument #79

Closed valericus closed 2 months ago

valericus commented 2 months ago

I tried to run ./manage.py listen --channles my.fancy.Channel and faced with couple of issues.

At first, there was a TypeError caused by missed order of arguments.

TypeError: isinstance() arg 2 must be a type, a tuple of types, or a union

When I've changed that order, another issue has rised, coused by missinf argument fow spawn mode.

manage.py listen: error: unrecognized arguments: my.fancy.Channel

So here is a fix for both issues.