Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

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

Description

@napunapu

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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions