Expose `duration` in Job API entity
We currently expose :duration
on Pipeline entities. I think it makes sense for Job
to also have a duration
attribute exposed as well.
It will be slightly different since duration
is a database field on Pipeline
, whereas for Job
I think we can just calculate it on-the-fly using started_at
and finished_at
.
Edited by Robert Speicher