Duration and latency metrics for succeeded jobs
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 :)

And yeah, it is already implemented and will be shipped with version 0.8.2.
:+1: awesome metrics, this will help a lot to see which jobs are taking longer, thanks a lot
They are also available from state filters, so you can log warnings if the processing time takes too long.
this is more than perfect, Hangfire is getting more solid day by day
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?