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

rebuild-tables gives "TimeoutError: ResourceRequest timed out" #218

Open
napunapu opened this issue Jul 29, 2018 · 0 comments
Open

rebuild-tables gives "TimeoutError: ResourceRequest timed out" #218

napunapu opened this issue Jul 29, 2018 · 0 comments

Comments

@napunapu
Copy link

Occasionally the rebuild-tables script gives the following error with a large dataset (e.g. Kliffa's 5500 participants):

 Error: TimeoutError: ResourceRequest timed out. Exiting.
 TimeoutError: ResourceRequest timed out
     at ResourceRequest._fireTimeout (/app/node_modules/generic-pool/lib/ResourceRequest.js:62:17)
     at Timeout.bound (/app/node_modules/generic-pool/lib/ResourceRequest.js:8:15)
     at ontimeout (timers.js:498:11)
     at tryOnTimeout (timers.js:323:5)
     at Timer.listOnTimeout (timers.js:290:5)

Obviously reducing database access by for example leaving out allergy handling alleviates the problem.

Most likely the real solution is to use a pool of limited size for database access. An example is given at sequelize/sequelize#7884 (lingz's comment on the bottom of the page).

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

1 participant