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

Configurable timeout for API calls #26

Open
ianwdunlop opened this issue Oct 23, 2015 · 1 comment
Open

Configurable timeout for API calls #26

ianwdunlop opened this issue Oct 23, 2015 · 1 comment

Comments

@ianwdunlop
Copy link
Member

OPs.js needs to have a configurable timeout for the API calls (see openphacts/ops.js#24). The explorer will need a timeout param in the config which can be picked up by the API calls it uses.

@jmartasek
Copy link

With a bit of hacking I managed to globally set the timeout by modifying vendor\assets\javascripts\combined.js (there is also one slightly different in public folder).

I added Constants.prototype.API_CALL_TIMEOUT = 60000; to the Constants definition and replaced all timeout: 30000 with timeout: new Constants().API_CALL_TIMEOUT

The value of the timeout can then be easily replaced with sed call in Dockerfile when building the image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants