From commits-return-12138-archive-asf-public=cust-asf.ponee.io@airflow.incubator.apache.org Thu Jan 18 15:47:06 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 31AFE180654 for ; Thu, 18 Jan 2018 15:47:06 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 201BC160C48; Thu, 18 Jan 2018 14:47:06 +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 3DB3D160C2B for ; Thu, 18 Jan 2018 15:47:05 +0100 (CET) Received: (qmail 33957 invoked by uid 500); 18 Jan 2018 14:47:04 -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 33948 invoked by uid 99); 18 Jan 2018 14:47:04 -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; Thu, 18 Jan 2018 14:47:04 +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 EC269C230B for ; Thu, 18 Jan 2018 14:47:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.91 X-Spam-Level: X-Spam-Status: No, score=-99.91 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001, 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 rHX-Eak0whwd for ; Thu, 18 Jan 2018 14:47:03 +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 A5EA95F27E for ; Thu, 18 Jan 2018 14:47:02 +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 AD791E0F91 for ; Thu, 18 Jan 2018 14:47: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 C58E121317 for ; Thu, 18 Jan 2018 14:47:00 +0000 (UTC) Date: Thu, 18 Jan 2018 14:47:00 +0000 (UTC) From: "Braun Reyes (JIRA)" To: commits@airflow.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AIRFLOW-351) Failed to clear downstream tasks MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Auto-Submitted: auto-generated [ https://issues.apache.org/jira/browse/AIRFLOW-351?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D163= 30590#comment-16330590 ]=20 Braun Reyes commented on AIRFLOW-351: ------------------------------------- I came across this same issue running 1.8 on Ubuntu 16.04.=C2=A0 Error was = "TypeError: cannot serialize '_io.TextIOWrapper' object" on __deepcopy__.= =C2=A0 Per Maxime's advice that there could be something in default argumen= ts that is not deepcopyable, I started removing things.=C2=A0 It was not no= t until I removed all the Dag object parameters from the default arguments = that the error started.=C2=A0 For example, I had start_date in default argu= ments.=C2=A0 Once I limited default arguments to Base Operator parameters.= =C2=A0 The error went away and clearing failed tasks worked.=C2=A0 The airf= low documentation still show examples with start_date in default arguments.= =C2=A0 My understanding from looking at logs is that this is to be deprecat= ed.=C2=A0 Is there a way we can update the documentation to reflect keeping= Dag parameters out of default arguments?=C2=A0 > Failed to clear downstream tasks > -------------------------------- > > Key: AIRFLOW-351 > URL: https://issues.apache.org/jira/browse/AIRFLOW-351 > Project: Apache Airflow > Issue Type: Bug > Components: models, subdag, webserver > Affects Versions: Airflow 1.7.1.3 > Reporter: Adinata > Priority: Major > Attachments: dag_error.py, error_on_clear_dag.txt, ubuntu-14-pack= ages.log, ubuntu-16-oops.log, ubuntu-16-packages.log > > > {code} > ____/ ( ( ) ) \___ > /( ( ( ) _ )) ) )\ > (( ( )( ) ) ( ) ) > ((/ ( _( ) ( _) ) ( () ) ) > ( ( ( (_) (( ( ) .((_ ) . )_ > ( ( ) ( ( ) ) ) . ) ( ) > ( ( ( ( ) ( _ ( _) ). ) . ) ) ( ) > ( ( ( ) ( ) ( )) ) _)( ) ) ) > ( ( ( \ ) ( (_ ( ) ( ) ) ) ) )) ( ) > ( ( ( ( (_ ( ) ( _ ) ) ( ) ) ) > ( ( ( ( ( ) (_ ) ) ) _) ) _( ( ) > (( ( )( ( _ ) _) _(_ ( (_ ) > (_((__(_(__(( ( ( | ) ) ) )_))__))_)___) > ((__) \\||lll|l||/// \_)) > ( /(/ ( ) ) )\ ) > ( ( ( ( | | ) ) )\ ) > ( /(| / ( )) ) ) )) ) > ( ( ((((_(|)_))))) ) > ( ||\(|(|)|/|| ) > ( |(||(||)|||| ) > ( //|/l|||)|\\ \ ) > (/ / // /|//||||\\ \ \ \ _) > -------------------------------------------------------------------------= ------ > Node: 9889a7c79e9b > -------------------------------------------------------------------------= ------ > Traceback (most recent call last): > File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1817, = in wsgi_app > response =3D self.full_dispatch_request() > File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1477, = in full_dispatch_request > rv =3D self.handle_user_exception(e) > File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1381, = in handle_user_exception > reraise(exc_type, exc_value, tb) > File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1475, = in full_dispatch_request > rv =3D self.dispatch_request() > File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1461, = in dispatch_request > return self.view_functions[rule.endpoint](**req.view_args) > File "/usr/local/lib/python2.7/dist-packages/flask_admin/base.py", line= 68, in inner > return self._run_view(f, *args, **kwargs) > File "/usr/local/lib/python2.7/dist-packages/flask_admin/base.py", line= 367, in _run_view > return fn(self, *args, **kwargs) > File "/usr/local/lib/python2.7/dist-packages/flask_login.py", line 755,= in decorated_view > return func(*args, **kwargs) > File "/usr/local/lib/python2.7/dist-packages/airflow/www/utils.py", lin= e 118, in wrapper > return f(*args, **kwargs) > File "/usr/local/lib/python2.7/dist-packages/airflow/www/utils.py", lin= e 167, in wrapper > return f(*args, **kwargs) > File "/usr/local/lib/python2.7/dist-packages/airflow/www/views.py", lin= e 1017, in clear > include_upstream=3Dupstream) > File "/usr/local/lib/python2.7/dist-packages/airflow/models.py", line 2= 870, in sub_dag > dag =3D copy.deepcopy(self) > File "/usr/lib/python2.7/copy.py", line 174, in deepcopy > y =3D copier(memo) > File "/usr/local/lib/python2.7/dist-packages/airflow/models.py", line 2= 856, in __deepcopy__ > setattr(result, k, copy.deepcopy(v, memo)) > File "/usr/lib/python2.7/copy.py", line 163, in deepcopy > y =3D copier(x, memo) > File "/usr/lib/python2.7/copy.py", line 257, in _deepcopy_dict > y[deepcopy(key, memo)] =3D deepcopy(value, memo) > File "/usr/lib/python2.7/copy.py", line 174, in deepcopy > y =3D copier(memo) > File "/usr/local/lib/python2.7/dist-packages/airflow/models.py", line 1= 974, in __deepcopy__ > setattr(result, k, copy.deepcopy(v, memo)) > File "/usr/lib/python2.7/copy.py", line 190, in deepcopy > y =3D _reconstruct(x, rv, 1, memo) > File "/usr/lib/python2.7/copy.py", line 334, in _reconstruct > state =3D deepcopy(state, memo) > File "/usr/lib/python2.7/copy.py", line 163, in deepcopy > y =3D copier(x, memo) > File "/usr/lib/python2.7/copy.py", line 257, in _deepcopy_dict > y[deepcopy(key, memo)] =3D deepcopy(value, memo) > File "/usr/lib/python2.7/copy.py", line 190, in deepcopy > y =3D _reconstruct(x, rv, 1, memo) > File "/usr/lib/python2.7/copy.py", line 334, in _reconstruct > state =3D deepcopy(state, memo) > File "/usr/lib/python2.7/copy.py", line 163, in deepcopy > y =3D copier(x, memo) > File "/usr/lib/python2.7/copy.py", line 257, in _deepcopy_dict > y[deepcopy(key, memo)] =3D deepcopy(value, memo) > File "/usr/lib/python2.7/copy.py", line 190, in deepcopy > y =3D _reconstruct(x, rv, 1, memo) > File "/usr/lib/python2.7/copy.py", line 334, in _reconstruct > state =3D deepcopy(state, memo) > File "/usr/lib/python2.7/copy.py", line 163, in deepcopy > y =3D copier(x, memo) > File "/usr/lib/python2.7/copy.py", line 257, in _deepcopy_dict > y[deepcopy(key, memo)] =3D deepcopy(value, memo) > File "/usr/lib/python2.7/copy.py", line 163, in deepcopy > y =3D copier(x, memo) > File "/usr/lib/python2.7/copy.py", line 230, in _deepcopy_list > y.append(deepcopy(a, memo)) > File "/usr/lib/python2.7/copy.py", line 190, in deepcopy > y =3D _reconstruct(x, rv, 1, memo) > File "/usr/lib/python2.7/copy.py", line 334, in _reconstruct > state =3D deepcopy(state, memo) > File "/usr/lib/python2.7/copy.py", line 163, in deepcopy > y =3D copier(x, memo) > File "/usr/lib/python2.7/copy.py", line 257, in _deepcopy_dict > y[deepcopy(key, memo)] =3D deepcopy(value, memo) > File "/usr/lib/python2.7/copy.py", line 190, in deepcopy > y =3D _reconstruct(x, rv, 1, memo) > File "/usr/lib/python2.7/copy.py", line 334, in _reconstruct > state =3D deepcopy(state, memo) > File "/usr/lib/python2.7/copy.py", line 163, in deepcopy > y =3D copier(x, memo) > File "/usr/lib/python2.7/copy.py", line 257, in _deepcopy_dict > y[deepcopy(key, memo)] =3D deepcopy(value, memo) > File "/usr/lib/python2.7/copy.py", line 190, in deepcopy > y =3D _reconstruct(x, rv, 1, memo) > File "/usr/lib/python2.7/copy.py", line 329, in _reconstruct > y =3D callable(*args) > File "/usr/lib/python2.7/copy_reg.py", line 93, in __newobj__ > return cls.__new__(cls, *args) > TypeError: object.__new__(thread.lock) is not safe, use thread.lock.__new= __() > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)