From commits-return-20899-archive-asf-public=cust-asf.ponee.io@airflow.incubator.apache.org Wed Sep 5 01:58:04 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 14B17180668 for ; Wed, 5 Sep 2018 01:58:03 +0200 (CEST) Received: (qmail 62643 invoked by uid 500); 4 Sep 2018 23:58: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 62522 invoked by uid 99); 4 Sep 2018 23:58: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; Tue, 04 Sep 2018 23:58: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 9A839C09FC for ; Tue, 4 Sep 2018 23:58:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.501 X-Spam-Level: X-Spam-Status: No, score=-109.501 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id LJr6KIUTmi4P for ; Tue, 4 Sep 2018 23:58:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id A2D525F1BD for ; Tue, 4 Sep 2018 23:58: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 1855FE1013 for ; Tue, 4 Sep 2018 23:58:01 +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 478B226B56 for ; Tue, 4 Sep 2018 23:58:00 +0000 (UTC) Date: Tue, 4 Sep 2018 23:58:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: commits@airflow.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AIRFLOW-3007) Scheduler docs use deprecated use of `schedule_interval` MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AIRFLOW-3007?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16603739#comment-16603739 ] ASF GitHub Bot commented on AIRFLOW-3007: ----------------------------------------- r39132 closed pull request #3847: [AIRFLOW-3007] Update backfill example in Scheduler docs URL: https://github.com/apache/incubator-airflow/pull/3847 This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/docs/scheduler.rst b/docs/scheduler.rst index 3e895898fc..df85d28785 100644 --- a/docs/scheduler.rst +++ b/docs/scheduler.rst @@ -109,11 +109,15 @@ interval series. 'email_on_failure': False, 'email_on_retry': False, 'retries': 1, - 'retry_delay': timedelta(minutes=5), - 'schedule_interval': '@hourly', + 'retry_delay': timedelta(minutes=5) } - dag = DAG('tutorial', catchup=False, default_args=default_args) + dag = DAG( + 'tutorial', + default_args=default_args, + description='A simple tutorial DAG', + schedule_interval='@hourly', + catchup=False) In the example above, if the DAG is picked up by the scheduler daemon on 2016-01-02 at 6 AM, (or from the command line), a single DAG Run will be created, with an ``execution_date`` of 2016-01-01, and the next ---------------------------------------------------------------- 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 > Scheduler docs use deprecated use of `schedule_interval` > --------------------------------------------------------- > > Key: AIRFLOW-3007 > URL: https://issues.apache.org/jira/browse/AIRFLOW-3007 > Project: Apache Airflow > Issue Type: Improvement > Components: docs, Documentation > Reporter: Kaxil Naik > Assignee: Kaxil Naik > Priority: Minor > Fix For: 2.0.0 > > Attachments: screenshot-1.png > > > The scheduler docs at https://airflow.apache.org/scheduler.html#backfill-and-catchup use deprecated way of passing {{schedule_interval}} . {{schedule_interval}} should be pass to DAG as a separate parameter and not as a default arg. > !screenshot-1.png! -- This message was sent by Atlassian JIRA (v7.6.3#76005)