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 B9C50200C26 for ; Fri, 10 Feb 2017 14:19:02 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id B86B6160B5B; Fri, 10 Feb 2017 13:19:02 +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 0DC00160B5C for ; Fri, 10 Feb 2017 14:19:01 +0100 (CET) Received: (qmail 49652 invoked by uid 500); 10 Feb 2017 13:18:54 -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 48328 invoked by uid 99); 10 Feb 2017 13:18:45 -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; Fri, 10 Feb 2017 13:18:45 +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 7691DC05D7 for ; Fri, 10 Feb 2017 13:18:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 5EPO-m6Xk9As for ; Fri, 10 Feb 2017 13:18:43 +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 7E6B25FDEA for ; Fri, 10 Feb 2017 13:18:43 +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 7AC41E04A8 for ; Fri, 10 Feb 2017 13:18:42 +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 DD00A21D68 for ; Fri, 10 Feb 2017 13:18:41 +0000 (UTC) Date: Fri, 10 Feb 2017 13:18:41 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: commits@airflow.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AIRFLOW-856) Execution_date is always set to None in local_client API MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 10 Feb 2017 13:19:02 -0000 [ https://issues.apache.org/jira/browse/AIRFLOW-856?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15861239#comment-15861239 ] ASF subversion and git services commented on AIRFLOW-856: --------------------------------------------------------- Commit fb88c2d8362d751f902252c51c8bce4301ac8c40 in incubator-airflow's branch refs/heads/v1-8-test from [~bolke] [ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=fb88c2d ] [AIRFLOW-856] Make sure execution date is set for local client In the local api client the execution date was hardi coded to None. Secondly, when no execution date was specified the execution date was set to datetime.now(). Datetime.now() includes the fractional seconds that are supported in the database, but they are not supported in a.o. the current logging setup. Now we cut off fractional seconds for the execution date. Closes #2064 from bolkedebruin/AIRFLOW-856 (cherry picked from commit b7c828bf094d3aa1eae310979a82addf7e423bb0) Signed-off-by: Bolke de Bruin > Execution_date is always set to None in local_client API > -------------------------------------------------------- > > Key: AIRFLOW-856 > URL: https://issues.apache.org/jira/browse/AIRFLOW-856 > Project: Apache Airflow > Issue Type: Bug > Components: cli > Affects Versions: 1.8.0rc2 > Reporter: Bolke de Bruin > Assignee: Bolke de Bruin > Priority: Blocker > Fix For: 1.8.0rc3 > > > def trigger_dag(self, dag_id, run_id=None, conf=None, execution_date=None): > dr = trigger_dag.trigger_dag(dag_id=dag_id, > run_id=run_id, > conf=conf, > execution_date=None) > return "Created {}".format(dr) > is the code in local_client. This sets execution_date to None -- This message was sent by Atlassian JIRA (v6.3.15#6346)