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 6A82D200B8B for ; Mon, 19 Sep 2016 18:14:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 691C8160ABB; Mon, 19 Sep 2016 16:14:22 +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 D0C30160ADC for ; Mon, 19 Sep 2016 18:14:21 +0200 (CEST) Received: (qmail 37612 invoked by uid 500); 19 Sep 2016 16:14:20 -0000 Mailing-List: contact dev-help@reef.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@reef.apache.org Delivered-To: mailing list dev@reef.apache.org Received: (qmail 37266 invoked by uid 99); 19 Sep 2016 16:14:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Sep 2016 16:14:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 783502C0D5B for ; Mon, 19 Sep 2016 16:14:20 +0000 (UTC) Date: Mon, 19 Sep 2016 16:14:20 +0000 (UTC) From: "Julia (JIRA)" To: dev@reef.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (REEF-1565) Make Context accessible from task MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 19 Sep 2016 16:14:22 -0000 [ https://issues.apache.org/jira/browse/REEF-1565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15503878#comment-15503878 ] Julia commented on REEF-1565: ----------------------------- I see your point. Context and Task can inject the same singleton even context itself is not injected. I will close the PR. > Make Context accessible from task > --------------------------------- > > Key: REEF-1565 > URL: https://issues.apache.org/jira/browse/REEF-1565 > Project: REEF > Issue Type: Task > Reporter: Julia > Assignee: Julia > Labels: FT > > For fault tolerant, states should be saved at context level so that when the task is resubmitted, update task host would be able to restore the state from the context. > Currently, we start task from context. But inside task we are not able to access context. As ContextRuntime could have multiple instances, it is not created by injection. > This Jira is to make Task able to inject context where the task is running on. This is the first step for the state management. -- This message was sent by Atlassian JIRA (v6.3.4#6332)