Hi all,

I want to run some code on a node based on an affinity key, for that I'm
using ignite.compute().affinityRunAsync(...) but I have a few questions
about this.

*1.* Is it possible to give every closure a name (kind of an id), so that
when I start a new client, I can somehow get the list of running closures
and stop/start them accordingly?

*2.* The closure I'm running never ends. I thought calling future.cancel()
would cancel it, but it's not the case, it keeps logging things on the
console. What's the proper way to stop the execution of a closure?

*3.* I've seen there's a ignite.compute().withName(...) and
ignite.compute().activeTaskFutures() method, but I've no idea how or when
to use them, specially since the futures doesn't have a name but a uuid.
Also, what exactly is a "task" in Ignite and how does it differs from a
closure (ie, IgniteRunnable)?

Cheers,
Matt

Reply via email to