Fork me on GitHub
#onyx
<
2017-01-31
>
rc114006:01:09

hi all this may be a silly question , but if i want a task to receive a batch of segments , all i should need to do is set the batch-fn property to try right ?

rc114006:01:53

the basic idea is that we are processing segments and then collecting them to be emailed , but the batch task isnt receiving a vector of segments , rather its just recieving individual segments

lucasbradstreet06:01:50

@rc1140: yep, that's right. Batch fn is what you need. Just make sure you return your data in the way described by the docs

rc114006:01:34

cool , let me setup a small demo to test with , possibly an issue with code or workflow

rc114006:01:35

i assume the fact that we are reading from and writing to kafka shouldnt change anything

lucasbradstreet06:01:52

Yup. End result should be the same

rc114007:01:25

is there a way to have an undefined batchsize , i.e just continue sending segments until timeout

rc114007:01:24

so the issue atm is that it if i create a spy function as a test (as defined in the docs) and set it up as a batch function it only prints out single empty values until i kill the job , I have checked the value from the previous task is a vector of maps but the amount of items printed in the spy functions are way more than returned by the previous step

rc114007:01:46

also the segment printed in the spy function is a "()" [i think thats an empty list]

rc114007:01:41

seems like anytime i setup a function as a batch function is recieves empty (or rather 0 length segments)

yonatanel09:01:28

@michaeldrogalis Have you had any legal issues using Eclipse or GPL license libs in Pyro?