hercules-ci / support

User feedback, questions and our public roadmap. help@hercules-ci.com
5 stars 1 forks source link

Inaccurate job duration #31

Open srid opened 4 years ago

srid commented 4 years ago

So my agent was down for several days, and once I fixed and restart it, the jobs that were 'waiting' ran and completed. Their duration reported includes the number of days waited.

image

https://hercules-ci.com/github/srid/rib-sample/jobs/9

In practical terms that is not accurate, as the job took a matter of minutes to complete (albeit after having waited for days for the agent to come online).

domenkozar commented 4 years ago

Thanks for the bug report.

It seems like the duration should really be sum of the time spent building derivations, but then we also need a timestamp when job completed.

Does that make more sense?

srid commented 4 years ago

Yes. Maybe even a 'timeline' of events each having their own timestamp.