-
Notifications
You must be signed in to change notification settings - Fork 0
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
getting the time job is in waiting queue #82
Comments
We have some additional timestamps that may be useful for you such as: |
We're currently using a combination of What would be most helpful is an additional timestamp property on the job that is the time it was last moved into the waiting status. Just as an example, call it
This would be backwards compatible since the meaning of |
@peplin ok, so you are interested only in the time it waited in the last time it was in wait, not on the total time it actually took until the job was processed, right? I wonder, why is of no interest to know the time it was in wait before it started to be retried? |
Yes, that's correct! I would say that both cases are interesting, but they serve different purposes. My team maintains the queues and we would like to offer our job authors guarantees about how long their jobs will wait in the queue. We don't someone's flaky job (that requires multiple retries) to impact our measurements of queue wait time. |
We would like to monitor the time jobs are in ready to be executed waiting for worker to detects congestion issues. As far as I can tell
timestamp
is the time the job was created which would not work that great if the jobs get put back to the queue from a worker -- eg with retry or delay. There is an issue from year or so ago about something similar. Is the answer still that we cannot get this information?As an aside, I saw that you are working on (opentelemetry) telemetry support which is great. On a quick look this seemed to focus on tracing only. Can we or or are there plans to expose bullmq metrics such as number of jobs etc through opentelemetry?
The text was updated successfully, but these errors were encountered: