Hangfire icon indicating copy to clipboard operation
Hangfire copied to clipboard

Duration and latency metrics for succeeded jobs

Open odinserj opened this issue 12 years ago • 5 comments

It is useful to know the exact performance timings. And this feature was simple enough to implement. So, new stats added to the job details page:

  • Duration – job method invocation time + method filters invocation time.
  • Latency – delay between the job creation and method invocation. This metric shows you background job invocation overhead.

P.S. High latency and duration values on screenshot caused by global distributed lock and 10000 running jobs :)

2014-05-20 22 38 57

odinserj avatar May 20 '14 18:05 odinserj

And yeah, it is already implemented and will be shipped with version 0.8.2.

odinserj avatar May 20 '14 18:05 odinserj

:+1: awesome metrics, this will help a lot to see which jobs are taking longer, thanks a lot

devmondo avatar May 20 '14 20:05 devmondo

They are also available from state filters, so you can log warnings if the processing time takes too long.

odinserj avatar May 20 '14 20:05 odinserj

this is more than perfect, Hangfire is getting more solid day by day

devmondo avatar May 20 '14 22:05 devmondo

We use MSMQ for enqueuing jobs, yet I'm still seeing latencies of between 0.7 and 1.5 seconds... why is that? Shouldn't MSMQ be almost instantaneous?

purestgreen avatar Oct 10 '16 11:10 purestgreen