Commit graph

652 commits

Author SHA1 Message Date
Robert Nishihara
5802cab87c Fix bug in which ObjectFixture gets called at exit after raylib gets set to None. (#416) 2016-09-07 18:49:19 -07:00
Robert Nishihara
d264713ceb Work around Arrow bug by increasing metadata size. (#415) 2016-09-07 18:46:04 -07:00
Robert Nishihara
11a8914684 Allow users to serialize custom classes. (#393)
* Allow serialization of custom classes.

* Add documentation and test cases, also fix pickle case.

* Don't allow old-style classes.
2016-09-06 13:28:24 -07:00
Robert Nishihara
d5cb3ac090 Propagate error messages from functions that run on all workers. (#410) 2016-09-06 10:06:43 -07:00
Robert Nishihara
5ac2df4329 Don't increment reference count in Py_BuildValue. (#12)
* Decrement reference count for result of serialization callback and also for an object created in DeserializeDict.

* Check tuples exactly so named tuples go to callback.

* Assert that callback is set if _pytype_ key present.
2016-09-06 10:02:30 -07:00
Robert Nishihara
dd23a68f79 Merge pull request #12 from pcmoritz/refactor
Remove C struct duplication and python plasma manager
2016-09-05 23:28:00 -07:00
Philipp Moritz
ad1a8454d5 remove C struct duplication and python plasma manager 2016-09-05 15:37:17 -07:00
Robert Nishihara
2e4b655892 Merge pull request #11 from pcmoritz/callbackerr
Propagate callback error through
2016-09-04 13:37:21 -07:00
Robert Nishihara
327d7ff689 Fix bug to enable calling ray.get multiple times on same ObjectID. (#409) 2016-09-04 13:32:55 -07:00
Philipp Moritz
a428806788 propagate callback error 2016-09-04 13:18:24 -07:00
Philipp Moritz
68cec55a98 Refcount without modifying objects (#407)
* refcount without modifying objects

* add documentation

* Update tests and documentation.

* Remove extraneous code.

* Update numbuf version.
2016-09-04 12:07:52 -07:00
Robert Nishihara
c4c33bd087 Merge pull request #9 from pcmoritz/base
Introduce base object
2016-09-04 11:55:24 -07:00
Philipp Moritz
84cfce3be2 introduce base object 2016-09-04 00:15:05 -07:00
Robert Nishihara
81f40774a7 Remove ObjectID aliasing from the API. (#406)
* Remove ObjectID aliasing from the API.

* Update documentation to remove aliasing.
2016-09-03 19:34:45 -07:00
Richard Shin
efb61ca9c7 Return scheduler address in ray.init (#403) 2016-09-03 18:25:47 -07:00
Richard Shin
a5df45a92e Describe the object which wasn't serializable (#404) 2016-09-03 18:10:03 -07:00
Richard Shin
6f2ed775a2 Allow arbitrary bytes in types.String (#405) 2016-09-03 18:05:09 -07:00
Richard Shin
80fdfcd1a5 Check num_objstores > 0 in start_ray_local (#402) 2016-09-03 17:37:06 -07:00
Philipp Moritz
3548797202 [API] Implement get for multiple objects (#398)
* [API] Implement get for multiple objects

* Small fixes.
2016-09-02 18:02:44 -07:00
Stephanie Wang
b6872182bf Add hiredis to build (#395)
* Add hiredis to build

* make hiredis build if ray has been cloned before this commit
2016-09-01 20:15:00 -07:00
Robert Nishihara
3fc9196deb Merge pull request #7 from pcmoritz/numpy-object
Serialize numpy arrays with custom objects
2016-08-30 20:04:47 -07:00
Robert Nishihara
ad12d5fece Handle more general numpy object types. 2016-08-30 19:31:04 -07:00
Philipp Moritz
75555ee25c Remove type information from remote decorator. (#394)
* Remove type information from remote decorator.

* Remove typing module.

* Fix failure_test.py.

* Allow remote decorator to be used with no parentheses.

* Fix documentation.
2016-08-30 18:34:25 -07:00
Robert Nishihara
5cf1d60cb2 Fix documentation. 2016-08-30 17:20:00 -07:00
Philipp Moritz
04c28001fc Serialize numpy arrays with custom objects 2016-08-30 16:50:46 -07:00
Robert Nishihara
fb7ccef493 Allow remote decorator to be used with no parentheses. 2016-08-30 16:38:26 -07:00
Robert Nishihara
8c1f0f289e Merge pull request #5 from pcmoritz/callback
add custom callbacks for serialization
2016-08-30 15:55:34 -07:00
Philipp Moritz
7481a02024 add custom callbacks for serialization 2016-08-30 15:51:59 -07:00
Robert Nishihara
ce4e5ec544 Fix failure_test.py. 2016-08-29 22:52:13 -07:00
Robert Nishihara
b87912cb2f Remove typing module. 2016-08-29 22:16:19 -07:00
Robert Nishihara
d7f313a026 Remove type information from remote decorator. 2016-08-29 22:05:59 -07:00
Philipp Moritz
93e6c9947b update numbuf (#392)
* update numbuf

* Augment serialization tests.
2016-08-25 20:05:48 -07:00
Robert Nishihara
74406e92e4 Merge pull request #4 from pcmoritz/key_tuples
Tuple keys in dicts can be serialized
2016-08-25 16:16:43 -07:00
Philipp Moritz
5c409c3916 make variable names more uniform 2016-08-25 16:04:31 -07:00
Wapaul1
420bcc0477 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
2016-08-25 15:26:22 -07:00
William Paul
f468871b5d Tuples as keys in dicts can be serialized 2016-08-24 23:31:09 +00:00
Robert Nishihara
43452b9ab3 Try grpc version 1.0 (#386) 2016-08-23 19:29:18 -07:00
Robert Nishihara
a0490846a2 Merge pull request #7 from pcmoritz/manager
Object store manager
2016-08-22 16:18:11 -07:00
Philipp Moritz
e1627319b3 clean up tests 2016-08-22 15:35:47 -07:00
Philipp Moritz
98b80ea446 Merge pull request #11 from pcmoritz/python
Test Python 3 in Travis.
2016-08-18 23:51:54 -07:00
Robert Nishihara
87447256c4 Test Python 3 in Travis. 2016-08-18 23:26:08 -07:00
Robert Nishihara
b1db890cd8 Export GRPC environment variable in Python instead of in setup-env.sh (#382)
* Export GRPC logging environment variable in Python.

* Don't wipe PYTHONPATH in setup-env.sh
2016-08-18 15:39:19 -07:00
Robert Nishihara
3d6d1e8fe5 Test plasma manager. 2016-08-18 10:04:00 -07:00
Philipp Moritz
23327a18e0 add plasma manager 2016-08-17 13:01:56 -07:00
Philipp Moritz
32fadd54f5 Merge pull request #6 from pcmoritz/make
Remove directories as well with make clean.
2016-08-17 11:21:59 -07:00
Philipp Moritz
36af79427d Merge pull request #9 from pcmoritz/test
Basic Python unit tests.
2016-08-16 17:53:51 -07:00
Robert Nishihara
b6b17f3ac3 Retry if plasma client fails to connect to plasma store. 2016-08-16 17:52:18 -07:00
Robert Nishihara
1b66ac54ba Basic Python unit tests. 2016-08-16 17:17:11 -07:00
Robert Nishihara
6511ea8cc5 Merge pull request #8 from pcmoritz/fix
fix error handling
2016-08-16 16:03:14 -07:00
Philipp Moritz
6db8d1c15a fix error handling 2016-08-16 15:58:14 -07:00