From commits-return-12612-archive-asf-public=cust-asf.ponee.io@airflow.incubator.apache.org Mon Feb 12 09:15:04 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id DA4D2180652 for ; Mon, 12 Feb 2018 09:15:04 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id CA8A7160C3F; Mon, 12 Feb 2018 08:15:04 +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 1CAF3160C31 for ; Mon, 12 Feb 2018 09:15:03 +0100 (CET) Received: (qmail 31487 invoked by uid 500); 12 Feb 2018 08:15:03 -0000 Mailing-List: contact commits-help@airflow.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airflow.incubator.apache.org Delivered-To: mailing list commits@airflow.incubator.apache.org Received: (qmail 31478 invoked by uid 99); 12 Feb 2018 08:15:03 -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, 12 Feb 2018 08:15:03 +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 C76C7C1848 for ; Mon, 12 Feb 2018 08:15:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.311 X-Spam-Level: X-Spam-Status: No, score=-110.311 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id wpTOzrhZP4pc for ; Mon, 12 Feb 2018 08:15:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 7F2325F4DC for ; Mon, 12 Feb 2018 08:15:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id BFA83E01A9 for ; Mon, 12 Feb 2018 08:15:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 219F4240F2 for ; Mon, 12 Feb 2018 08:15:00 +0000 (UTC) Date: Mon, 12 Feb 2018 08:15:00 +0000 (UTC) From: "Yuliya Volkova (JIRA)" To: commits@airflow.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AIRFLOW-2072) Calling task from different DAG MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AIRFLOW-2072?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16= 360412#comment-16360412 ]=20 Yuliya Volkova commented on AIRFLOW-2072: ----------------------------------------- [~AnilKumar2], hello! What result do you want from this? Are you want just reuse code? If just re= use code - you can do it like with any python code - move task to separate = python function inside DAG .py and import it from any place or you want to get with task some results from it parent DAG? If second variant - need to describe more information, but I think in Airfl= ow there are things like Xcom, if you need to share results. Anyway if you will have more questions, join gitter - https://gitter.im/apa= che/incubator-airflow there you can get answers more faster \{#emotions_dlg= .smile} =C2=A0 > Calling task from different DAG > ------------------------------- > > Key: AIRFLOW-2072 > URL: https://issues.apache.org/jira/browse/AIRFLOW-2072 > Project: Apache Airflow > Issue Type: Task > Components: Dataflow > Affects Versions: 1.9.0 > Reporter: Anil Kumar > Priority: Major > > Hello Again, > I am new=C2=A0for Airflow, started POC for ETL operation Orchestration ac= tivity using Airflow. On creating new DAG, do we have any option to call ex= isting task from other DAG to new one. Like I want to call DAG_DataPrep.Cop= yEBCIDIC to new DAG. -- This message was sent by Atlassian JIRA (v7.6.3#76005)