lanms commented on issue #19069:
URL: https://github.com/apache/airflow/issues/19069#issuecomment-951611635


   > Hi @lanms, I'm not able to reproduce this and I suspect it's something 
related to `EnterpriseWeiChat`. Can you try to reproduce with this DAG:
   > 
   > ```python
   > from datetime import datetime
   > from airflow import DAG
   > from airflow.operators.python import PythonOperator, ShortCircuitOperator
   > 
   > 
   > def say_hello():
   >     print("hello")
   > 
   > 
   > def keep_going():
   >     return True
   > 
   > 
   > with DAG("pythonop", start_date=datetime(2021, 10, 14), 
schedule_interval=None) as dag:
   >     short = ShortCircuitOperator(task_id="short", 
python_callable=keep_going)
   >     hello = PythonOperator(task_id="hello", python_callable=say_hello)
   >     short >> hello
   > ```
   
   
   The cause of this problem was found to be the manipulation of logging in our 
own code, The problem disappeared after deletion
   
   
   delete code 
   ```python
   hdlr = logging.StreamHandler(sys.stdout)
   fmt = BigFormatter(format="[%(asctime)s] %(levelname)s %(name)s: 
%(message)s")
   hdlr.setFormatter(fmt)
   logging.root.addHandler(hdlr)
   ```
   
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to