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 2021/10/26 06:46:11 UTC
[GitHub] [airflow] lanms commented on issue #19069: V2.2 Pythonoperator task status could not be changed to success, write large log file and OOM
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org