You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "dstandish (via GitHub)" <gi...@apache.org> on 2024/09/03 20:40:50 UTC

[I] dag parse stdout goes to warning on celery worker [airflow]

dstandish opened a new issue, #41982:
URL: https://github.com/apache/airflow/issues/41982

   ### Body
   
   not sure why but here's an example
   
   sample code
   
   ```
   from time import sleep
   
   from airflow import DAG
   from airflow.decorators import task
   from airflow.models.baseoperator import chain_linear
   
   with DAG(dag_id="dag1", catchup=False):
   
       @task
       def the_task():
           sleep(10)
   
       tasks = []
       for num in range(3):
           tasks.append(the_task.override(task_id=f"task_{num+1}")())
   
       chain_linear(*tasks)
   
   print("HI I AM HERE")
   ```
   
   celery worker output
   
   <img width="405" alt="image" src="https://github.com/user-attachments/assets/3d1480e5-520d-47f7-bc1d-16b064fc1f3e">
   
   this can pollute worker logs if you have a really chatty dag
   
   
   
   ### Committer
   
   - [X] I acknowledge that I am a maintainer/committer of the Apache Airflow project.


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org