Skip to content
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

Question about log? #3

Open
djk2 opened this issue Oct 21, 2021 · 3 comments
Open

Question about log? #3

djk2 opened this issue Oct 21, 2021 · 3 comments

Comments

@djk2
Copy link

djk2 commented Oct 21, 2021

Hey,
I started using your application to monitor my Huey queue,
I have a question about Ignored event scheduled log in console.
How I should interpret this event?
It is mean that scheduled task are not monitored?

In console I have:

huey-exporter-metrics | Ignored event scheduled
huey-exporter-metrics | Ignored event scheduled
huey-exporter-metrics | Ignored event scheduled
huey-exporter-metrics | Ignored event scheduled
huey-exporter-metrics | Ignored event scheduled
huey-exporter-metrics | Ignored event checking-periodic
huey-exporter-metrics | Ignored event scheduling-periodic
huey-exporter-metrics | Ignored event scheduling-periodic
huey-exporter-metrics | Ignored event scheduled
huey-exporter-metrics | Ignored event scheduled
huey-exporter-metrics | Ignored event scheduled
huey-exporter-metrics | Ignored event scheduled
huey-exporter-metrics | Ignored event scheduled
huey-exporter-metrics | Ignored event scheduled
huey-exporter-metrics | Ignored event scheduled
huey-exporter-metrics | Ignored event scheduled

I'm using docker
Thanks from your attention.

@MarcoGlauser
Copy link
Owner

This project was written with huey 1.9 in mind. Version 2.0 changed the events/signals api, so I'm not 100% sure it still works as expected.

The exporter is only listening for 4 events:

  • task started
  • task finished
  • task error
  • task enqueued - This is a custom event added by RedisEnqueuedEventHuey described in the readme

Everything else gets ignored and is what you see in the logs. It seems that version 2.x added support for scheduled signals out of the box.
I'll investigate further on the weekend and see if I can get it to work reliably with huey 2.x

@MarcoGlauser
Copy link
Owner

MarcoGlauser commented Oct 31, 2021

@djk2 Which version of huey are you using exactly?

In the meantime, I opened an issue on the huey repository to clarify the api change. But I suspect this might be a bit more complicated than originally anticipated.

@djk2
Copy link
Author

djk2 commented Nov 3, 2021

Hi @MarcoGlauser , sorry for delay.
I'm using : huey==1.9.1
I'm wondering that I catch all events in my queue,
I don't understanding log in docker console:

huey-exporter-metrics | Ignored event scheduled
huey-exporter-metrics | Ignored event checking-periodic

I decided use huey-exporter because this is a convenient way to add monitoring for large queue (I have dozens tasks)
I must have sure that I catching all events.
Sentence ignored event... confused me :)

One small remarks:
After restart docker all metrics start counting from 0.
It is posible to add some persistant storage to remember last value for metric and after restart continue counting?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants