mirror of
https://github.com/wassname/ray.git
synced 2026-07-24 13:20:22 +08:00
Various Python code cleanups. (#3837)
This commit is contained in:
committed by
Robert Nishihara
parent
a1bcd2a4f5
commit
9295ab8f60
@@ -125,11 +125,8 @@ class ImportThread(object):
|
||||
# the traceback and notify the scheduler of the failure.
|
||||
traceback_str = traceback.format_exc()
|
||||
# Log the error message.
|
||||
name = function.__name__ if ("function" in locals() and hasattr(
|
||||
function, "__name__")) else ""
|
||||
utils.push_error_to_driver(
|
||||
self.worker,
|
||||
ray_constants.FUNCTION_TO_RUN_PUSH_ERROR,
|
||||
traceback_str,
|
||||
driver_id=ray.DriverID(driver_id),
|
||||
data={"name": name})
|
||||
driver_id=ray.DriverID(driver_id))
|
||||
|
||||
Reference in New Issue
Block a user