Breeding-Insight / sgn

The code behind the Sol Genomics Network, Cassavabase and BreeDBase websites
https://solgenomics.net
MIT License
2 stars 0 forks source link

[BI-1193] BI-API throws timeout exception when BB mat view refresh exceeds 10m #119

Closed dmeidlin closed 1 year ago

dmeidlin commented 1 year ago

Description

Importing of experiments was failing during QA because the volume of data (for example, ~100,00 germplasm) was causing the time to refresh the phenotype materialized view after obs. unit creation to exceed the limit set in bi-api (10 minutes) when a timeout exception is thrown if it hasn't received a response from the brapi service.

The call to refresh the mat. view was changed from asynchronous to synchronous to avoid potential race conditions.

Checklist