vatsrahul1001 opened a new issue, #47829: URL: https://github.com/apache/airflow/issues/47829
### Apache Airflow version main (development) ### If "Other Airflow 2 version" selected, which one? _No response_ ### What happened? Task name is showing `__main__` instead it should show as function name <img width="1349" alt="Image" src="https://github.com/user-attachments/assets/cfb658d4-81a5-47c5-82ad-82bb35fdf806" /> ### What you think should happen instead? <img width="1349" alt="Image" src="https://github.com/user-attachments/assets/79be9d93-58ac-45d5-82b4-d2254e364de9" /> ### How to reproduce 1. Use below DAG and check task name ``` from airflow.sdk.definitions.asset.decorators import asset @asset(schedule=None,uri="s3://bucket/asset1_producer") def raw_customers(): print("Retrieving raw customer data") @asset(schedule=raw_customers) def stg_customers(): print("Transforming raw customer data") ``` ### Operating System Linux ### Versions of Apache Airflow Providers _No response_ ### Deployment Other ### Deployment details _No response_ ### Anything else? _No response_ ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md) -- 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]
