mirror of
https://github.com/wassname/ray.git
synced 2026-08-14 12:40:23 +08:00
catch exceptions on workers and pass them to the scheduler (#93)
This commit is contained in:
committed by
Philipp Moritz
parent
61a0014c00
commit
41539141af
@@ -78,3 +78,9 @@ try:
|
||||
varargs_and_kwargs_exception_thrown = False
|
||||
except:
|
||||
varargs_and_kwargs_exception_thrown = True
|
||||
|
||||
# test throwing an exception
|
||||
|
||||
@ray.remote([], [])
|
||||
def throw_exception_fct():
|
||||
raise Exception("Test function intentionally failed.")
|
||||
|
||||
Reference in New Issue
Block a user