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 97D57200BBF for ; Mon, 14 Nov 2016 12:48:04 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 967F1160B06; Mon, 14 Nov 2016 11:48: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 E2298160B05 for ; Mon, 14 Nov 2016 12:48:03 +0100 (CET) Received: (qmail 38356 invoked by uid 500); 14 Nov 2016 11:48: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 38347 invoked by uid 99); 14 Nov 2016 11:48: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, 14 Nov 2016 11:48: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 B7CB7C73A1 for ; Mon, 14 Nov 2016 11:48:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -7.019 X-Spam-Level: X-Spam-Status: No, score=-7.019 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.999] 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 YBCcSRirXMgY for ; Mon, 14 Nov 2016 11:48:00 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id C2A965FAF3 for ; Mon, 14 Nov 2016 11:47:59 +0000 (UTC) Received: (qmail 37663 invoked by uid 99); 14 Nov 2016 11:47:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Nov 2016 11:47:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7DF552C0088 for ; Mon, 14 Nov 2016 11:47:58 +0000 (UTC) Date: Mon, 14 Nov 2016 11:47:58 +0000 (UTC) From: "Flex Gao (JIRA)" To: commits@airflow.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (AIRFLOW-625) doc_md in concepts document seems wrong MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 14 Nov 2016 11:48:04 -0000 Flex Gao created AIRFLOW-625: -------------------------------- Summary: doc_md in concepts document seems wrong Key: AIRFLOW-625 URL: https://issues.apache.org/jira/browse/AIRFLOW-625 Project: Apache Airflow Issue Type: Bug Affects Versions: Airflow 1.7.1 Environment: CentOS 7.2 Reporter: Flex Gao In [https://github.com/apache/incubator-airflow/blob/master/docs/concepts.rst] it said *doc_md* is an attribute of a task, but this will give an error on webserver *Graph* tab Example Dag file: {code:python} #!/usr/bin/env python # -*- coding: utf-8 -*- from airflow import DAG from airflow.operators.bash_operator import BashOperator from datetime import datetime, timedelta SCRIPTS_PATH = '/var/lib/airflow/scripts' default_args = { 'depends_on_past': False, 'start_date': datetime(2016, 11, 9, 0, 55), } dag = DAG('elasticsearch', default_args=default_args, schedule_interval=timedelta(days=1)) t1 = BashOperator( task_id='daily_index_delete', bash_command='%s/es_clean.py' % SCRIPTS_PATH, dag=dag) t1.doc_md = """\ #### Task Documentation Clean ES Indeices Every Day """ {code} This will give a traceback: *AttributeError: 'NoneType' object has no attribute 'strip'* But if i changed *t1.doc_md* to *dag.doc_md*, everything is ok. -- This message was sent by Atlassian JIRA (v6.3.4#6332)