We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2103fa9 commit affe7e5Copy full SHA for affe7e5
src/JupyterLibrary/keywords/server.py
@@ -171,8 +171,17 @@ def terminate_all_jupyter_servers(self):
171
terminated = 0
172
for nbh in self._handles:
173
plib.terminate_process(nbh, kill=True)
174
+ try:
175
+ shutil.rmtree(self._tmpdirs[nbh])
176
+ except Exception:
177
+ BuiltIn().log(f"Failed to delete {self._tmpdirs[nbh]}")
178
+ BuiltIn().sleep("5s")
179
180
181
182
+ BuiltIn().log(f"Giving up {self._tmpdirs[nbh]}")
183
+
184
terminated += 1
- shutil.rmtree(self._tmpdirs[nbh])
185
186
self._handles = []
187
0 commit comments