Remote function returning non-serializable type no longer shuts worker down (#384)

* Moved put_objects in main_loop to inside of try block

* Added test for failed serialization

* Fixed naming

* Minor
This commit is contained in:
Wapaul1
2016-08-25 15:26:22 -07:00
committed by Robert Nishihara
parent 43452b9ab3
commit 420bcc0477
3 changed files with 21 additions and 2 deletions
+8
View File
@@ -116,3 +116,11 @@ def test_return1():
@ray.remote([], [int, float])
def test_return2():
return 2.0, 3.0
class TestClass(object):
def __init__(self):
self.a = 5
@ray.remote([], [TestClass])
def test_unknown_type():
return TestClass()