From commits-return-20517-apmail-airavata-commits-archive=airavata.apache.org@airavata.apache.org Thu May 2 20:34:11 2019 Return-Path: X-Original-To: apmail-airavata-commits-archive@www.apache.org Delivered-To: apmail-airavata-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by minotaur.apache.org (Postfix) with SMTP id CD695197E4 for ; Thu, 2 May 2019 20:34:10 +0000 (UTC) Received: (qmail 60620 invoked by uid 500); 2 May 2019 20:34:10 -0000 Delivered-To: apmail-airavata-commits-archive@airavata.apache.org Received: (qmail 60609 invoked by uid 500); 2 May 2019 20:34:10 -0000 Mailing-List: contact commits-help@airavata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airavata.apache.org Delivered-To: mailing list commits@airavata.apache.org Received: (qmail 60600 invoked by uid 99); 2 May 2019 20:34:10 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 May 2019 20:34:10 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 2A228871DE; Thu, 2 May 2019 20:34:05 +0000 (UTC) Date: Thu, 02 May 2019 20:34:05 +0000 To: "commits@airavata.apache.org" Subject: [airavata] branch master updated: Bringing back publishing task status over message bus MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <155682924510.870.9766012648707159035@gitbox.apache.org> From: dimuthuupe@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: airavata X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: b933d963904e2dc3d56b5db6640b8d4cf4cea3dc X-Git-Newrev: a6045664bb2d4260aea7f6919ed7b32b5116131a X-Git-Rev: a6045664bb2d4260aea7f6919ed7b32b5116131a X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated This is an automated email from the ASF dual-hosted git repository. dimuthuupe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/airavata.git The following commit(s) were added to refs/heads/master by this push: new a604566 Bringing back publishing task status over message bus a604566 is described below commit a6045664bb2d4260aea7f6919ed7b32b5116131a Author: Dimuthu Wannipurage AuthorDate: Thu May 2 16:33:56 2019 -0400 Bringing back publishing task status over message bus --- .../main/java/org/apache/airavata/helix/impl/task/AiravataTask.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/airavata-helix/helix-spectator/src/main/java/org/apache/airavata/helix/impl/task/AiravataTask.java b/modules/airavata-helix/helix-spectator/src/main/java/org/apache/airavata/helix/impl/task/AiravataTask.java index b3380c9..5041d63 100644 --- a/modules/airavata-helix/helix-spectator/src/main/java/org/apache/airavata/helix/impl/task/AiravataTask.java +++ b/modules/airavata-helix/helix-spectator/src/main/java/org/apache/airavata/helix/impl/task/AiravataTask.java @@ -420,14 +420,14 @@ public abstract class AiravataTask extends AbstractTask { taskStatus.setState(ts); taskStatus.setTimeOfStateChange(AiravataUtils.getCurrentTimestamp().getTime()); getRegistryServiceClient().addTaskStatus(taskStatus, getTaskId()); - /*TaskIdentifier identifier = new TaskIdentifier(getTaskId(), + TaskIdentifier identifier = new TaskIdentifier(getTaskId(), getProcessId(), getExperimentId(), getGatewayId()); TaskStatusChangeEvent taskStatusChangeEvent = new TaskStatusChangeEvent(ts, identifier); MessageContext msgCtx = new MessageContext(taskStatusChangeEvent, MessageType.TASK, AiravataUtils.getId (MessageType.TASK.name()), getGatewayId()); msgCtx.setUpdatedTime(AiravataUtils.getCurrentTimestamp()); - statusPublisher.publish(msgCtx);*/ + statusPublisher.publish(msgCtx); } catch (Exception e) { logger.error("Failed to publish task status " + (ts != null ? ts.name(): "null") +" of task " + getTaskId()); }