src/ray/raylet/lib/python/common_extension.cc
PyObject *PyTask_make(ray::raylet::TaskSpecification *task_spec) {
  PyTask *result = PyObject_New(PyTask, &PyTaskType);
  result = (PyTask *)PyObject_Init((PyObject *)result, &PyTaskType);
  result->task_spec = task_spec;
  // The created task does not include any execution dependencies.
  result->execution_dependencies = new std::vector<ObjectID>();
  return (PyObject *)result;
}
// Create a PyTask from a C struct. The resulting PyTask takes ownership of the
// TaskSpec and will deallocate the TaskSpec in the PyTask destructor.
Create a PyTask from a C struct. The resulting PyTask takes ownership of the
TaskSpec and will deallocate the TaskSpec in the PyTask destructor.
Create a PyTask from a C struct . The resulting PyTask takes ownership of the TaskSpec and will deallocate the TaskSpec in the PyTask destructor .
PyObject *PyTask_make(ray::raylet::TaskSpecification *task_spec) {
  PyTask *result = PyObject_New(PyTask, &PyTaskType);
  result = (PyTask *)PyObject_Init((PyObject *)result, &PyTaskType);
  result->task_spec = task_spec;
  result->execution_dependencies = new std::vector<ObjectID>();
  return (PyObject *)result;
}
PyObject * PyTask_make ( ray :: raylet :: TaskSpecification * task_spec ) { PyTask * result = PyObject_New ( PyTask , & PyTaskType ) ; result = ( PyTask * ) PyObject_Init ( ( PyObject * ) result , & PyTaskType ) ; result -> task_spec = task_spec ; result -> execution_dependencies = new std :: vector < ObjectID > ( ) ; return ( PyObject * ) result ; }
Create a PyTask from a C struct.
Create a PyTask from a C struct .
// The created task does not include any execution dependencies.