uc-cdis / peregrine

GraphQL search API service
Apache License 2.0
12 stars 9 forks source link

PXB-692 Fix/schema generation #86

Closed paulineribeyre closed 6 years ago

paulineribeyre commented 6 years ago

Because we use several uwsgi workers, they steal resources from each other -- i.e. the schema.json file generation on my env takes 16s when using 2 workers and 8s when using 1 worker. --> this locks the schema.json file when a process is generating the schema, and the other processes wait for it to be done before proceeding

I set the timeout to 5 min but we could change that