Skip to content

Commit 6d3f6eb

Browse files
authored
Fix test_resubmit_nondeterministic_task_different_deps (#9085)
1 parent 801d0ed commit 6d3f6eb

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

distributed/client.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,10 @@ def status(self):
355355
str
356356
The status
357357
"""
358-
return self._state.status
358+
if self._state:
359+
return self._state.status
360+
else:
361+
return None
359362

360363
def done(self):
361364
"""Returns whether or not the computation completed.
@@ -554,7 +557,10 @@ def traceback(self, timeout=None, **kwargs):
554557
@property
555558
def type(self):
556559
"""Returns the type"""
557-
return self._state.type
560+
if self._state:
561+
return self._state.type
562+
else:
563+
return None
558564

559565
def release(self):
560566
"""

0 commit comments

Comments
 (0)