-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Event Listener #3
Comments
You get your huey instance by from hueyx.queues import hueyx
HUEY_GENERAL = hueyx('general')
HUEY_MONITORS = hueyx('monitors') Then you should access the storage by storage = HUEY_GENERAL.storage See https://huey.readthedocs.io/en/1.11.0/events.html#listening-to-events Be aware, the huey base package replaced the event system by a signal system. Chances are that your code above is already deprecated. Hueyx itself is not tested yet with huey 2.0. See #4 . |
Do you know how to combine both storages on a single listener? |
With a hack yes. Have a look at the huey exporter It provides Prometheus metrics and explores/subscribes queues automatically. |
Thank you very much, @Sebubu |
Hueyx 1.0.0 has been released. The signal system is now supported. |
Hello,
Could you help me to access the event listener using hueyx?
On native HUEY, I would have:
HUEY = RedisHuey('general', always_eager=False)
For the analogue HUEYX definition:
How could I access the event listener?
Thank you in advance.
The text was updated successfully, but these errors were encountered: