You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/04/17 10:42:17 UTC

[GitHub] [airflow] xiaohan2013 opened a new issue #8425: defaults_args can't take into method of class instance

xiaohan2013 opened a new issue #8425: defaults_args can't take into method of class instance 
URL: https://github.com/apache/airflow/issues/8425
 
 
   <!--
   
   Welcome to Apache Airflow!  For a smooth issue process, try to answer the following questions.
   Don't worry if they're not all applicable; just try to include what you can :-)
   
   If you need to include code snippets or logs, please put them in fenced code
   blocks.  If they're super-long, please use the details tag like
   <details><summary>super-long log</summary> lots of stuff </details>
   
   Please delete these comment blocks before submitting the issue.
   
   -->
   
   <!--
   
   IMPORTANT!!!
   
   Please complete the next sections or the issue will be closed.
   This questions are the first thing we need to know to understand the context.
   
   -->
   
   **Apache Airflow version**:  1.10.9
   
   
   **Kubernetes version (if you are using kubernetes)** (use `kubectl version`):
   
   **Environment**:
   
   - **Cloud provider or hardware configuration**: amazon ec2
   - **OS** (e.g. from /etc/os-release):
   - **Kernel** (e.g. `uname -a`):Linux version 4.14.165-103.209.amzn1.x86_64
   - **Install tools**:pip3
   - **Others**:
   
   **What happened**: pickle _thread.RLock objects
   
   <!-- (please include exact error messages if you can) -->
   
   **What you expected to happen**: 
   
   <!-- What do you think went wrong? -->
   
   **How to reproduce it**:   
   1. 
   default_args = {
       'owner': 'xxx',
       'depends_on_past': False,
       'start_date': datetime(2020, 4, 6),
       'email': ['xxx@xxx.com'],
       'email_on_failure': False,
       'email_on_retry': False,
       'retries': 0,
       'retry_delay': timedelta(minutes=5),
       'on_failure_callback': notifier.failure_callback
   }
   2.  notifier = Notifier(subscribers=[Notifier.MSG], phone_receivers="111111111111",
                       email_receivers="xxxxx@xxxxx.com")
   
   3. dag = DAG('xxxxxxx',
             default_args=default_args,
             schedule_interval='01 20 * * *')
   4. UI throw exception, pickle _thread.RLock objects ,however in the logfile throwing TypeError: cannot serialize '_io.TextIOWrapper' object
   
   <!---
   
   As minimally and precisely as possible. Keep in mind we do not have access to your cluster or dags.
   
   If you are using kubernetes, please attempt to recreate the issue using minikube or kind.
   
   ## Install minikube/kind
   
   - Minikube https://minikube.sigs.k8s.io/docs/start/
   - Kind https://kind.sigs.k8s.io/docs/user/quick-start/
   
   If this is a UI bug, please provide a screenshot of the bug or a link to a youtube video of the bug in action
   
   You can include images using the .md sytle of
   ![alt text](http://url/to/img.png)
   
   To record a screencast, mac users can use QuickTime and then create an unlisted youtube video with the resulting .mov file.
   
   --->
   
   
   **Anything else we need to know**:
   
   <!--
   
   How often does this problem occur? Once? Every time etc?
   
   Any relevant logs to include? Put them here in side a detail tag:
   <details><summary>x.log</summary> lots of stuff </details>
   
   -->
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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


With regards,
Apache Git Services