Re: Passing a pointer to an Object in task Info

2014-08-01 Thread Adam Bordelon
The framework scheduler is expected to run on a separate machine from the tasks/executors. If you want the executor to perform an action, then it should be a method on the executor itself, or a separate task binary. On the other hand, if you want the executor to cause the scheduler to do

Passing a pointer to an Object in task Info

2014-07-30 Thread Sai Sagar
Hi all, I want to pass a pointer to an object in Task Information like we do in task.set_data(some string). In executor, I want to call a method of the object with some parameters sent along with pointer to object in task information. Can some one please guide me on this? Best Regards, J. Sai

Re: Passing a pointer to an Object in task Info

2014-07-30 Thread Niklas Nielsen
I am not sure I completely understand the issue. Just passing a pointer won't work. The compiled protobuf code won't try to infer the size of the object. Also it will go over the wire, so you can't reference memory on the other node. In one way or another, you need to serialize the object to a