Skip to content

Commit

Permalink
Log adaptive error (#4422)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtomlinson committed Jan 12, 2021
1 parent 658fccc commit 74e8dc6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion distributed/deploy/adaptive_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ async def adapt(self) -> None:
await self.scale_up(**recommendations)
if status == "down":
await self.scale_down(**recommendations)
except OSError:
except OSError as e:
logger.error("Adaptive stopping due to error %s", str(e))
self.stop()
finally:
self._adapting = False

0 comments on commit 74e8dc6

Please sign in to comment.