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

Dump has_what, missing_dep_flight #6830

Merged
merged 2 commits into from
Aug 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions distributed/tests/test_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -3327,9 +3327,11 @@ async def test_Worker__to_dict(c, s, a):
"nthreads",
"running",
"ready",
"has_what",
"constrained",
"executing",
"long_running",
"missing_dep_flight",
"in_flight_tasks",
"in_flight_workers",
"busy_workers",
Expand Down
2 changes: 2 additions & 0 deletions distributed/tests/test_worker_state_machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ def test_WorkerState__to_dict(ws):
"data": {"y": None},
"data_needed": {},
"executing": [],
"has_what": {"127.0.0.1:1235": ["x"]},
"in_flight_tasks": ["x"],
"in_flight_workers": {"127.0.0.1:1235": ["x"]},
"log": [
Expand All @@ -166,6 +167,7 @@ def test_WorkerState__to_dict(ws):
["y", "receive-from-scatter", "s2"],
],
"long_running": [],
"missing_dep_flight": [],
"nthreads": 1,
"ready": [],
"running": True,
Expand Down
2 changes: 2 additions & 0 deletions distributed/worker_state_machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -3070,9 +3070,11 @@ def _to_dict(self, *, exclude: Container[str] = ()) -> dict:
for w, tss in self.data_needed.items()
},
"executing": {ts.key for ts in self.executing},
"has_what": dict(self.has_what),
"long_running": {ts.key for ts in self.long_running},
"in_flight_tasks": {ts.key for ts in self.in_flight_tasks},
"in_flight_workers": self.in_flight_workers,
"missing_dep_flight": [ts.key for ts in self.missing_dep_flight],
"busy_workers": self.busy_workers,
"log": self.log,
"stimulus_log": self.stimulus_log,
Expand Down