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 9000B200B27 for ; Wed, 22 Jun 2016 23:58:20 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8EC31160A36; Wed, 22 Jun 2016 21:58:20 +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 D600E160A24 for ; Wed, 22 Jun 2016 23:58:19 +0200 (CEST) Received: (qmail 62125 invoked by uid 500); 22 Jun 2016 21:58:19 -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 62115 invoked by uid 99); 22 Jun 2016 21:58:19 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jun 2016 21:58:19 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 9D410C0849 for ; Wed, 22 Jun 2016 21:58:18 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -5.446 X-Spam-Level: X-Spam-Status: No, score=-5.446 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=-1.426] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id VObhGzDFAnUn for ; Wed, 22 Jun 2016 21:58:17 +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 113265F245 for ; Wed, 22 Jun 2016 21:58:16 +0000 (UTC) Received: (qmail 61628 invoked by uid 99); 22 Jun 2016 21:58:16 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jun 2016 21:58:16 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 2A4022C14F8 for ; Wed, 22 Jun 2016 21:58:16 +0000 (UTC) Date: Wed, 22 Jun 2016 21:58:16 +0000 (UTC) From: "TERESA YAN (JIRA)" To: commits@airflow.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (AIRFLOW-271) schedule_interval at a particular time behaves strangely MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 22 Jun 2016 21:58:20 -0000 TERESA YAN created AIRFLOW-271: ---------------------------------- Summary: schedule_interval at a particular time behaves strangely Key: AIRFLOW-271 URL: https://issues.apache.org/jira/browse/AIRFLOW-271 Project: Apache Airflow Issue Type: Bug Components: scheduler Affects Versions: Airflow 1.7.1 Reporter: TERESA YAN Fix For: Airflow 1.7.1.2 I have created a dag with the following configs in a python dag script. default_args = { 'owner': 'airflow', 'depends_on_past': False, 'start_date': datetime(2016,6,20), 'email': email_list, 'email_on_failure': True, 'email_on_retry': True, 'retries': 3, 'retry_delay': timedelta(minutes=2), 'provide_context': True # 'queue': 'bash_queue', # 'pool': 'backfill', # 'priority_weight': 10, # 'schedule_interval': timedelta(1), # 'end_date': datetime(2016, 1, 1), } dag = DAG('feed_scheduler_template', default_args=default_args, schedule_interval="01 16 * * *") When I run the scheduler, it gives a strange behavior, for example today is 6/20 19:30 (I clear the db when I run the scheduler), start_date is 6/20 It will start running for the following three timestamps in the logs directory data@dp-i-54a2648f:~/airflow/logs/feed_scheduler_template $ ls -l send total 12 -rw-rw-r-- 1 data data 3099 Jun 22 19:30 2016-06-20T00:00:00 -rw-rw-r-- 1 data data 3100 Jun 22 19:30 2016-06-20T16:01:00 -rw-rw-r-- 1 data data 3100 Jun 22 19:30 2016-06-21T16:01:00 The question is 1. Why is 2016-06-20T00:00:00 at 0 hour 0 minute get executed because I only want 16:01. 2. I never get the 2016-06-22T16:01:00 run although my machine time already pass that 16:01 hour on June 22. Any idea? Thanks so much -- This message was sent by Atlassian JIRA (v6.3.4#6332)