Skip to content

Track average scheduling delay when accepting tasks.#1583

Merged
ssalinas merged 4 commits into
masterfrom
average-scheduling-delay
Jul 14, 2017
Merged

Track average scheduling delay when accepting tasks.#1583
ssalinas merged 4 commits into
masterfrom
average-scheduling-delay

Conversation

@baconmania

Copy link
Copy Markdown
Contributor

No description provided.

long now = System.currentTimeMillis();

if (bldr.getAverageSchedulingDelayMillis().isPresent()) {
long newAverageSchedulingDelayMillis = (bldr.getAverageSchedulingDelayMillis().get() * bldr.getNumTasks() + (now - dueTime)) / (bldr.getNumTasks() + 1);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this could get funky along with tracking the avgRunTime. We would be incrementing the numTasks when the tasks were finished, but updating this based on when they were started. Might want to track a separate numTasks for this

@ssalinas

ssalinas commented Jul 6, 2017

Copy link
Copy Markdown
Contributor

👍

@ssalinas ssalinas modified the milestone: 0.17.0 Jul 14, 2017
@ssalinas ssalinas merged commit 9b68200 into master Jul 14, 2017
@ssalinas ssalinas deleted the average-scheduling-delay branch July 14, 2017 19:41
@baconmania baconmania modified the milestones: 0.18.0, 0.17.0 Sep 20, 2017
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.

2 participants