muzehyun opened a new issue, #54996:
URL: https://github.com/apache/airflow/issues/54996
### Apache Airflow version
3.0.5
### If "Other Airflow 2 version" selected, which one?
_No response_
### What happened?
Importing the package with from simple_salesforce import Salesforce causes
requests.get to hang, but if I comment out that import line, it works normally.
Installed packages
```
Python 3.10.12
MacOS
Package Version
---------------------------------------- ---------------
apache-airflow 3.0.4
apache-airflow-core 3.0.4
apache-airflow-providers-common-compat 1.7.3
apache-airflow-providers-common-io 1.6.2
apache-airflow-providers-common-sql 1.27.4
apache-airflow-providers-smtp 2.1.2
apache-airflow-providers-standard 1.5.0
apache-airflow-task-sdk 1.0.4
requests 2.32.4
simple-salesforce 1.12.9
urllib3 2.5.0
```
Launch command: airflow standalone
Airflow Dag
```
import datetime
from airflow.sdk import DAG
from airflow.providers.standard.operators.python import PythonOperator
import requests
from simple_salesforce import Salesforce
def foo(**kwargs):
request = requests.get("https://httpbin.org/get")
print(f"request: {request.text}")
return "Whatever you return gets printed in the logs"
with DAG(
dag_id="my_dag_name",
start_date=datetime.datetime(2021, 1, 1),
schedule="@daily",
):
processing = PythonOperator(task_id="foo", retries=0,
python_callable=foo)
```
### What you think should happen instead?
It happens only with Airflow. It works okay if it is no in Airflow.
### How to reproduce
Create above Dag and run the.
### Operating System
macOS
### Versions of Apache Airflow Providers
apache-airflow-providers-common-compat 1.7.3
apache-airflow-providers-common-io 1.6.2
apache-airflow-providers-common-sql 1.27.4
apache-airflow-providers-smtp 2.1.2
apache-airflow-providers-standard 1.5.0
apache-airflow-task-sdk 1.0.4
### Deployment
Official Apache Airflow Helm Chart
### 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]