Skip to content

Commit

Permalink
Add time started to scheduler info (#4425)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtomlinson authored Jan 13, 2021
1 parent 74e8dc6 commit da3d2a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions distributed/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1963,6 +1963,7 @@ def identity(self, comm=None):
"id": str(self.id),
"address": self.address,
"services": {key: v.port for (key, v) in self.services.items()},
"started": self.time_started,
"workers": {
worker.address: worker.identity() for worker in self.workers.values()
},
Expand Down
1 change: 1 addition & 0 deletions distributed/tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3789,6 +3789,7 @@ def test_scheduler_info(c):
info = c.scheduler_info()
assert isinstance(info, dict)
assert len(info["workers"]) == 2
assert isinstance(info["started"], float)


def test_write_scheduler_file(c):
Expand Down

0 comments on commit da3d2a4

Please sign in to comment.