KennethanCeyer edited a comment on pull request #19378:
URL: https://github.com/apache/airflow/pull/19378#issuecomment-966898703


   One quick question!
   If the user uses `DecoratedOperator` as shown below through TaskFlow API,
   there seems to be no way to block XCom return value logs.
   
   ```python
   @task
   def my_task(): # Guess it is `_PythonDecoratedOperator`
       # ... process
       return large_data
   
   
   with DAG(...) as dag:
       data = my_task() # It will make a huge log messages on Airflow UI
       my_second_task(data)
   ```
   
   so, I think additional work will be required in a separate PR for TaskFlow 
API users.
   What do you think?
   Below are the locations that appear to require further work.
   
   
https://github.com/apache/airflow/blob/a9772cf287111a63eac8c2deb1190f7054d7580f/airflow/decorators/python.py#L49-L59


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