Ray PDB support (#11739)

This commit is contained in:
Philipp Moritz
2020-11-03 09:49:23 -08:00
committed by GitHub
parent 952b71dc94
commit 39ce0eadbe
8 changed files with 281 additions and 1 deletions
+3
View File
@@ -244,6 +244,9 @@ class RayServeWorker:
result = await method_to_call(arg)
self.request_counter.record(1)
except Exception as e:
import os
if "RAY_PDB" in os.environ:
ray.util.pdb.post_mortem()
result = wrap_to_ray_error(e)
self.error_counter.record(1)