-
Notifications
You must be signed in to change notification settings - Fork 663
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to pass request timeouts to Salesforce http operations #148
Comments
This request is full of win. |
Hello, we are interested in this merge, is there a timeline / estimate for a release ? cheers |
Me, too. The salesforce connection has been silent for 7 hours |
+1 |
In light of recent Salesforce issues, it seems like this is getting more and more critical. |
+1 |
So you can actually set a timeout for every call of a particular requests session by attaching your own HTTP adapter. This is the solution I've used in my own usage of simple_salesforce as well as for other modules that let you provide your own requests.Session() object.
Then pass There is actually a lot of powerful things you can do with overriding parts of the default HTTPAdaptor in requests. |
In an automated environment, requests to Saleforce not timing out can cause really bad service interruptions. I've had cases where a service has "gone silent" for a few days. At the moment most of the API calls have no mechanism to pass in the timeout parameter to
requests
. I've had blocked requests when trying to login and when performing operations related tosalesforce objects
.Generally we should be able to pass down parameters to
requests
. This issue is also similar to #81The text was updated successfully, but these errors were encountered: