Just discovered Node.io, gone though the docs, api, etc. and it looks great. However, building my first job exports.job = new nodeio.Job(..)
, with methods like input, run,output, reduce, complete
I'm in need of some kind of initialize()
method which is called once, before successive calls to input()
are done. (Similar how complete
is called once just before the job is finished)
Any such method around?
For completeness: This code imho has to be part of the node.io flow (through some dedicated method) since initializing my async code outside of the node.io scope doesn't guarentee the data is already there before the node.io job is executed.