Skip to content

How to increase opal-client timeout limit when connecting database? #142

Answered by orweis
hongbo-miao asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @hongbo-miao - I'm afraid the configuration values for the timeouts are not exposed yet to env-variables.
(They are found as consts in 'opal_common/fetcher/engine/fetching_engine.py')

I've created a pull-request to expose these - https://github.com/authorizon/opal/pull/143
After which you'll be able to set 'OPAL_FETCHING_CALLBACK_TIMEOUT' to the number of seconds you'd like.

Meanwhile you can (if you're in a rush) edit 'fetching_engine.py' and change the const value of 'DEFAULT_CALLBACK_TIMEOUT'

In addition , @asafc - we should consider allowing the fetcher, and maybe even the fetch-event to control the timeout as well - so it will be even more dynamic.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@asafc
Comment options

@hongbo-miao
Comment options

@hongbo-miao
Comment options

@asafc
Comment options

Answer selected by hongbo-miao
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants