Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fjetter committed Oct 13, 2021
1 parent ac2b153 commit bb3899b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion distributed/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -2765,10 +2765,10 @@ def transition_processing_memory(

s: set = self._unknown_durations.pop(ts._prefix._name, set())
tts: TaskState
steal = self.extensions.get("stealing")
for tts in s:
if tts._processing_on:
self.set_duration_estimate(tts, tts._processing_on)
steal = self.extensions.get("stealing")
if steal:
steal.put_key_in_stealable(tts)

Expand Down
2 changes: 0 additions & 2 deletions distributed/stealing.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,6 @@ def move_task_request(self, ts, victim, thief) -> str:
if ts in self.in_flight:
return "in-flight"
stimulus_id = f"steal-{time()}"
if self.scheduler.validate:
assert victim is ts.processing_on

key = ts.key
self.remove_key_from_stealable(ts)
Expand Down

0 comments on commit bb3899b

Please sign in to comment.