Skip to content
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

[ADD] external-request-timeout: It could wait for a long time #370

Merged
merged 1 commit into from
May 24, 2022

Commits on May 24, 2022

  1. [ADD] external-request-timeout: It could wait for a long time

    Calling external request needs to use timeout in order to avoid waiting for a long time
    It could be even worse if you have one or many records locked
    then calling a requests it could accumulate a lot of locks and
    the workers could be used for more time and the system could be down
    waiting for release
    
    You can define your custom methods using the parameter: --external_request_timeout_methods
    
    The default methods are:
        - http.client.HTTPConnection
        - http.client.HTTPSConnection
        - odoo.addons.iap.models.iap.jsonrpc
        - requests.delete
        - requests.get
        - requests.head
        - requests.options
        - requests.patch
        - requests.post
        - requests.put
        - requests.request
        - serial.Serial
        - smtplib.SMTP
        - suds.client.Client
        - urllib.request.urlopen
    moylop260 committed May 24, 2022
    Configuration menu
    Copy the full SHA
    5740049 View commit details
    Browse the repository at this point in the history