Val, that works like a charm. Thanks! The API documentation for the annotation JobContextResource says it can be used only into ComputeJobs. It wasn't very clear it could be used inside an IgniteRunnable as well. Thanks! -neelesh
On Fri, Feb 26, 2016 at 4:30 PM, vkulichenko <[email protected]> wrote: > Hi Neelesh, > > You can inject job context into the closure using annotation: > > public class MyGridJob implements IgniteRunnable { > @JobContextResource > private ComputeJobContext jobCtx; > > ... > } > > Let me know if it works for you. > > -Val > > > > -- > View this message in context: > http://apache-ignite-users.70518.x6.nabble.com/Setting-jobcontext-attributes-for-jobs-submitted-via-run-call-tp3209p3213.html > Sent from the Apache Ignite Users mailing list archive at Nabble.com. >
