Skip to content

Commit

Permalink
Change log level for Compute Failed log message (#8802)
Browse files Browse the repository at this point in the history
  • Loading branch information
phofl authored Jul 30, 2024
1 parent 386e5fe commit 5e1d365
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions distributed/tests/test_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ def reset(self):

tb = await y._traceback()
assert any("1 / 0" in line for line in pluck(3, traceback.extract_tb(tb)) if line)
assert "Compute Failed" in hdlr.messages["warning"][0]
assert y.key in hdlr.messages["warning"][0]
assert "executing" in hdlr.messages["warning"][0]
assert "Compute Failed" in hdlr.messages["error"][0]
assert y.key in hdlr.messages["error"][0]
assert "executing" in hdlr.messages["error"][0]
logger.setLevel(old_level)

# Now we check that both workers are still alive.
Expand Down
2 changes: 1 addition & 1 deletion distributed/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -2341,7 +2341,7 @@ async def execute(self, key: Key, *, stimulus_id: str) -> StateMachineEvent:
)

if ts.state in ("executing", "long-running", "resumed"):
logger.warning(
logger.error(
"Compute Failed\n"
"Key: %s\n"
"State: %s\n"
Expand Down

0 comments on commit 5e1d365

Please sign in to comment.