aa-matthias opened a new issue, #53371:
URL: https://github.com/apache/airflow/issues/53371
### Apache Airflow version
3.0.3
### If "Other Airflow 2 version" selected, which one?
_No response_
### What happened?
To avoid redundant init of httphook in multiple class methods and reuse the
connection across multiple methods we are initializing the hook in the operator
init method. while this works fine debugging such a task is no longer possible
in Airflow (since 3.0.0).
Debugging the task via
```
if __name__ == "__main__":
dag_object.test()
```
works fine in previous versions of Airflow (e.g. 2.10.0).
### What you think should happen instead?
_No response_
### How to reproduce
please see one of the two minimal repo examples attached.
[minimal_repo_dag_test_issue_class.txt](https://github.com/user-attachments/files/21233144/minimal_repo_dag_test_issue_class.txt)
[minimal_repo_dag_test_issue_dag.txt](https://github.com/user-attachments/files/21233143/minimal_repo_dag_test_issue_dag.txt)
### Operating System
Ubuntu 24.04
### Versions of Apache Airflow Providers
_No response_
### Deployment
Virtualenv installation
### 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]