From commits-return-25865-archive-asf-public=cust-asf.ponee.io@airflow.incubator.apache.org Mon Oct 22 20:38:26 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 4294118064A for ; Mon, 22 Oct 2018 20:38:26 +0200 (CEST) Received: (qmail 99879 invoked by uid 500); 22 Oct 2018 18:38:25 -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 99870 invoked by uid 99); 22 Oct 2018 18:38:25 -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; Mon, 22 Oct 2018 18:38:25 +0000 From: GitBox To: commits@airflow.apache.org Subject: [GitHub] KimchaC removed a comment on issue #4071: [AIRFLOW-3237] Refactor example DAGs Message-ID: <154023350479.12186.4722869167310328784.gitbox@gitbox.apache.org> Date: Mon, 22 Oct 2018 18:38:24 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit KimchaC removed a comment on issue #4071: [AIRFLOW-3237] Refactor example DAGs URL: https://github.com/apache/incubator-airflow/pull/4071#issuecomment-431793039 Consider also changing the code to use the with context manager so that you don't have to repeat the dag=dag parameter on each task: ``` dag = DAG( 'my_dag', start_date=datetime(2016, 1, 1)) with dag: op = DummyOperator('op') op.dag is dag # True ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: users@infra.apache.org With regards, Apache Git Services