Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EF38B200CC9 for ; Mon, 17 Jul 2017 19:27:03 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EDABF1653DB; Mon, 17 Jul 2017 17:27:03 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3CCD31653D3 for ; Mon, 17 Jul 2017 19:27:03 +0200 (CEST) Received: (qmail 58739 invoked by uid 500); 17 Jul 2017 17:27:02 -0000 Mailing-List: contact user-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ignite.apache.org Delivered-To: mailing list user@ignite.apache.org Received: (qmail 58728 invoked by uid 99); 17 Jul 2017 17:27:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Jul 2017 17:27:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id D0E73C031D for ; Mon, 17 Jul 2017 17:27:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.174 X-Spam-Level: ** X-Spam-Status: No, score=2.174 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, NML_ADSP_CUSTOM_MED=1.2, SPF_SOFTFAIL=0.972, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id msBmz_dxGt_h for ; Mon, 17 Jul 2017 17:26:53 +0000 (UTC) Received: from mwork.nabble.com (mwork.nabble.com [162.253.133.43]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id A39C85F36E for ; Mon, 17 Jul 2017 17:26:53 +0000 (UTC) Received: from static.162.255.23.37.macminivault.com (unknown [162.255.23.37]) by mwork.nabble.com (Postfix) with ESMTP id 0867253B21609 for ; Mon, 17 Jul 2017 10:26:53 -0700 (MST) Date: Mon, 17 Jul 2017 10:26:53 -0700 (MST) From: vkulichenko To: user@ignite.apache.org Message-ID: <1500312413003-15015.post@n6.nabble.com> In-Reply-To: References: Subject: Re: Compute Grid Questions MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit archived-at: Mon, 17 Jul 2017 17:27:04 -0000 Hi Matt, 1. Each task or closure execution creates a session that has an ID. You can cast returned IgniteFuture to ComputeTaskFuture (unfortunately there is no other way now) and then use getTaskSession() method to get the session description. However, this information is available only on the node that executed the job, there is currently no way to cancel it from other client. 2. When job is cancelled, thread that is running it is interrupted. Job should check the interrupted flag and stop the execution if needed. 3. See #1. Having session ID, you can get a future for a task and then cancel it. But again, it's all local - this state is not shared across nodes. -Val -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Compute-Grid-Questions-tp14980p15015.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.