From commits-return-12364-archive-asf-public=cust-asf.ponee.io@airflow.incubator.apache.org Sat Feb 3 00:13:05 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 31F61180608 for ; Sat, 3 Feb 2018 00:13:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 2118C160C58; Fri, 2 Feb 2018 23:13:05 +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 7153C160C49 for ; Sat, 3 Feb 2018 00:13:04 +0100 (CET) Received: (qmail 81985 invoked by uid 500); 2 Feb 2018 23:13: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 81976 invoked by uid 99); 2 Feb 2018 23:13:03 -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, 02 Feb 2018 23:13:03 +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 2D716C0601 for ; Fri, 2 Feb 2018 23:13:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.311 X-Spam-Level: X-Spam-Status: No, score=-110.311 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, 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 (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id Tl_EBbzfJ1wY for ; Fri, 2 Feb 2018 23:13:02 +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 D0A6B5F3CC for ; Fri, 2 Feb 2018 23:13: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 64389E01DA for ; Fri, 2 Feb 2018 23:13:00 +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 0D2C821E83 for ; Fri, 2 Feb 2018 23:13:00 +0000 (UTC) Date: Fri, 2 Feb 2018 23:13:00 +0000 (UTC) From: "Fabrice Dossin (JIRA)" To: commits@airflow.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (AIRFLOW-2060) Clear task raise a TypeError - timezone related MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Fabrice Dossin created AIRFLOW-2060: --------------------------------------- Summary: Clear task raise a TypeError - timezone related Key: AIRFLOW-2060 URL: https://issues.apache.org/jira/browse/AIRFLOW-2060 Project: Apache Airflow Issue Type: Bug Affects Versions: 1.10.0 Reporter: Fabrice Dossin Attachments: simple_dag_timezone.py Hello, Please find attached a simple dag. Run it: airflow backfill simple_dag_timezone -s "2018-01-25T00:00:00+01:00" -e "201= 8-01-25T00:00:00+01:00" Then from webserver, when clearing the task it throw an exception: {code:java} Traceback (most recent call last): File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1988, in= wsgi_app response =3D self.full_dispatch_request() File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1641, in= full_dispatch_request rv =3D self.handle_user_exception(e) File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1544, in= handle_user_exception reraise(exc_type, exc_value, tb) File "/usr/local/lib/python3.5/dist-packages/flask/_compat.py", line 33, = in reraise raise value File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1639, in= full_dispatch_request rv =3D self.dispatch_request() File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1625, in= dispatch_request return self.view_functions[rule.endpoint](**req.view_args) File "/usr/local/lib/python3.5/dist-packages/flask_admin/base.py", line 6= 9, in inner return self._run_view(f, *args, **kwargs) File "/usr/local/lib/python3.5/dist-packages/flask_admin/base.py", line 3= 68, in _run_view return fn(self, *args, **kwargs) File "/usr/local/lib/python3.5/dist-packages/flask_login.py", line 755, i= n decorated_view return func(*args, **kwargs) File "/usr/local/lib/python3.5/dist-packages/airflow/www/utils.py", line = 264, in wrapper return f(*args, **kwargs) File "/usr/local/lib/python3.5/dist-packages/airflow/www/utils.py", line = 311, in wrapper return f(*args, **kwargs) File "/usr/local/lib/python3.5/dist-packages/airflow/www/views.py", line = 1018, in clear include_upstream=3Dupstream) File "/usr/local/lib/python3.5/dist-packages/airflow/models.py", line 369= 7, in sub_dag dag =3D copy.deepcopy(self) File "/usr/lib/python3.5/copy.py", line 166, in deepcopy y =3D copier(memo) File "/usr/local/lib/python3.5/dist-packages/airflow/models.py", line 368= 2, in __deepcopy__ setattr(result, k, copy.deepcopy(v, memo)) File "/usr/lib/python3.5/copy.py", line 155, in deepcopy y =3D copier(x, memo) File "/usr/lib/python3.5/copy.py", line 243, in _deepcopy_dict y[deepcopy(key, memo)] =3D deepcopy(value, memo) File "/usr/lib/python3.5/copy.py", line 166, in deepcopy y =3D copier(memo) File "/usr/local/lib/python3.5/dist-packages/airflow/models.py", line 249= 8, in __deepcopy__ setattr(result, k, copy.deepcopy(v, memo)) File "/usr/lib/python3.5/copy.py", line 182, in deepcopy y =3D _reconstruct(x, rv, 1, memo) File "/usr/lib/python3.5/copy.py", line 291, in _reconstruct args =3D deepcopy(args, memo) File "/usr/lib/python3.5/copy.py", line 155, in deepcopy y =3D copier(x, memo) File "/usr/lib/python3.5/copy.py", line 223, in _deepcopy_tuple y =3D [deepcopy(a, memo) for a in x] File "/usr/lib/python3.5/copy.py", line 223, in y =3D [deepcopy(a, memo) for a in x] File "/usr/lib/python3.5/copy.py", line 182, in deepcopy y =3D _reconstruct(x, rv, 1, memo) File "/usr/lib/python3.5/copy.py", line 292, in _reconstruct y =3D callable(*args) TypeError: __init__() takes 1 positional argument but 6 were given {code} =C2=A0 =C2=A0 I did dig a lot but was just able to tell the deepcopy was failing on a dat= etime... It has not been possible to me to find a solution. =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005)