mirror of
https://github.com/wassname/ray.git
synced 2026-06-30 18:33:37 +08:00
Fix actor bug arising from overwriting task specifications in the local scheduler (#513)
* copy task specifications put into the actor task cache so it won't get overwritten when the scheduler receives the next task * cleanup * cleanup and fix * linting * fix jenkins test * fix linting
This commit is contained in:
committed by
Robert Nishihara
parent
8532ba4272
commit
1dddd5336a
@@ -99,8 +99,7 @@ PyObject *PyTask_from_string(PyObject *self, PyObject *args) {
|
||||
PyTask *result = PyObject_New(PyTask, &PyTaskType);
|
||||
result = (PyTask *) PyObject_Init((PyObject *) result, &PyTaskType);
|
||||
result->size = size;
|
||||
result->spec = (TaskSpec *) malloc(size);
|
||||
memcpy(result->spec, data, size);
|
||||
result->spec = TaskSpec_copy((TaskSpec *) data, size);
|
||||
/* TODO(pcm): Use flatbuffers validation here. */
|
||||
return (PyObject *) result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user