-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make queued time metric reset when a job gets requeued (#3875)
* Make queued time metric reset when a job gets requeued Currently the queue duration metric always uses the jobs created time to determine how long it has been in the queue When jobs gets requeued, the time in state should start from when it was requeued rather than when the job was created - As it has only been in the queue since its last run terminated This was producing large "jumps" in queued time as jobs were tried for 15 minutes, requeued and immediately reporting 15 minutes in the queue - despite only being requeued a few seconds ago It is reasonable we may want to know when these retries are occurring / time they are costing, but I think they should be separate metrics, i.e: - Retry count - Total time queued? Total time attempting to start? Something along this line Signed-off-by: JamesMurkin <jamesmurkin@hotmail.com> * Include actual logic change Signed-off-by: JamesMurkin <jamesmurkin@hotmail.com> --------- Signed-off-by: JamesMurkin <jamesmurkin@hotmail.com>
- Loading branch information
1 parent
a2d3a7f
commit 99f8b26
Showing
2 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters