Skip to content

Commit

Permalink
Refactor occupancy (#7075)
Browse files Browse the repository at this point in the history
Co-authored-by: fjetter <fjetter@users.noreply.github.com>
Co-authored-by: Gabe Joseph <gjoseph92@gmail.com>
  • Loading branch information
3 people authored Oct 7, 2022
1 parent 2196966 commit 07e2259
Show file tree
Hide file tree
Showing 8 changed files with 322 additions and 285 deletions.
2 changes: 1 addition & 1 deletion distributed/dashboard/components/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1973,7 +1973,7 @@ def update(self):
current = len(self.scheduler.events["stealing"])
n = current - self.last

log = [log[-i][1] for i in range(1, n + 1) if isinstance(log[-i][1], list)]
log = [log[-i][1][1] for i in range(1, n + 1) if log[-i][1][0] == "request"]
self.last = current

if log:
Expand Down
Loading

0 comments on commit 07e2259

Please sign in to comment.