Re: Ignite.NET how to cancel tasks

2018-08-21 Thread slava.koptilin
Hello Maksym, Sorry for the delay. I'll try the modified example. I am not an expert in C#/.Net, so I cannot guarantee that the following topic will be helpful, but please take a look at https://apacheignite-net.readme.io/v2.6/docs/asynchronous-support#section-async-continuations Thanks, S.

Re: Ignite.NET how to cancel tasks

2018-08-12 Thread Maksym Ieremenko
Hello Slava, please try an modified version of https://github.com/apache/ignite/blob/master/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Compute/CancellationTest.cs,

Re: Ignite.NET how to cancel tasks

2018-08-07 Thread Вячеслав Коптилин
Hello, Have you checked Ignite log files? Do they contain anything suspicious? I just checked TeamCity and it seems that CancellationTest (that I mentioned above) is OK. Thanks, S. вт, 7 авг. 2018 г. в 9:47, Maksym Ieremenko : > Hi Slava, > > > > >> > using (var ignite = Ignition.Start()) > >

RE: Ignite.NET how to cancel tasks

2018-08-06 Thread Maksym Ieremenko
Hi Slava, >> > using (var ignite = Ignition.Start()) >> Is it possible that Ignite node was closed before the cancellation request >> was processed by an instance of SimpleJob? Could you please check that fact? No. I double cheeked: the main thread hangs on cts.Cancel(); // CancellationTokenSour

Re: Ignite.NET how to cancel tasks

2018-08-06 Thread Вячеслав Коптилин
{ > // never happens !!! > Console.WriteLine("cancel task"); > Volatile.Write(ref _isCancelled, true); > } > } > > Thanks, > Max > > -Original Message- > From: slava.koptilin [mailto:slava.kopti.

RE: Ignite.NET how to cancel tasks

2018-08-05 Thread Maksym Ieremenko
Volatile.Write(ref _isCancelled, true); } } Thanks, Max -Original Message- From: slava.koptilin [mailto:slava.kopti...@gmail.com] Sent: Donnerstag, 2. August 2018 17:56 To: user@ignite.apache.org Subject: Re: Ignite.NET how to cancel tasks Hello Maksym, It seems

Re: Ignite.NET how to cancel tasks

2018-08-02 Thread slava.koptilin
Hello Maksym, It seems that you need to call Cancel() method. something like as follows: var cts = new CancellationTokenSource(); var task = Compute.ExecuteJavaTaskAsync(ComputeApiTest.BroadcastTask, null, cts.Token); cts.Cancel(); Please take a look at this example: https://github.com/apache/ig