Skip to content

Commit

Permalink
Remove transition_fetch_missing
Browse files Browse the repository at this point in the history
  • Loading branch information
mrocklin committed Apr 13, 2022
1 parent f1d0ab0 commit b96699a
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions distributed/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,6 @@ def __init__(
("executing", "released"): self.transition_executing_released,
("executing", "rescheduled"): self.transition_executing_rescheduled,
("fetch", "flight"): self.transition_fetch_flight,
("fetch", "missing"): self.transition_fetch_missing,
("fetch", "released"): self.transition_generic_released,
("flight", "error"): self.transition_flight_error,
("flight", "fetch"): self.transition_flight_fetch,
Expand Down Expand Up @@ -1930,14 +1929,6 @@ def transition_flight_missing(
ts.done = False
return {}, []

def transition_fetch_missing(
self, ts: TaskState, *, stimulus_id: str
) -> RecsInstrs:
ts.state = "missing"
self._missing_dep_flight.add(ts)
ts.done = False
return {}, []

def transition_released_fetch(
self, ts: TaskState, *, stimulus_id: str
) -> RecsInstrs:
Expand Down Expand Up @@ -2680,9 +2671,8 @@ def ensure_communicating(self) -> None:
if ts.state != "fetch":
continue

if not ts.who_has:
self.transition(ts, "missing", stimulus_id=stimulus_id)
continue
if self.validate:
assert ts.who_has

workers = [w for w in ts.who_has if w not in self.in_flight_workers]
if not workers:
Expand Down

0 comments on commit b96699a

Please sign in to comment.