Skip to content

Commit

Permalink
Display unexpected state in Worker.execute validation (#6856)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbourbeau authored Aug 9, 2022
1 parent bf53760 commit 85cbe45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distributed/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -2164,7 +2164,7 @@ async def execute(self, key: str, *, stimulus_id: str) -> StateMachineEvent | No
try:
if self.state.validate:
assert not ts.waiting_for_data
assert ts.state == "executing"
assert ts.state == "executing", ts.state
assert ts.run_spec is not None

args2, kwargs2 = self._prepare_args_for_execution(ts, args, kwargs)
Expand Down

0 comments on commit 85cbe45

Please sign in to comment.