Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding method to return subtask map #117

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

matchand-nokia
Copy link

@matchand-nokia matchand-nokia commented Jul 20, 2021

Goal: Find a way to access individual subtask metrics. Specifically, find a way to access individual subtask queue times.

While metrics currently has functionality to allow for time in queue information to be extracted from the general job, it does not have the functionality capable of extracting time in queue information from individual subtasks. We found that we desire to implement a feature within metrics that would retrieve the subtask times of our pipeline jobs, as the current metrics don't allow for accurate queue time tracking when you have parallelized tasks.

We accomplished this by returning a map that specifically maps each subtask in chronological order it entered the queue to the time it that each task spent waiting in queue.

Our modifications included one function in TimeInQueueAction.java: getSubTaskQueuingDurations()

getSubTaskQueuingDurations() makes a hash map that takes the subtask's relative order and maps it to the subtask queue time. Each subtask is given a number based on the order of when each one first entering the queue.

@matchand-nokia matchand-nokia marked this pull request as ready for review August 3, 2021 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant