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

Priority call causes application hang in initial load for ATLAS #2350

Closed
fdefalco opened this issue Feb 14, 2024 · 1 comment
Closed

Priority call causes application hang in initial load for ATLAS #2350

fdefalco opened this issue Feb 14, 2024 · 1 comment
Assignees
Milestone

Comments

@fdefalco
Copy link
Contributor

Expected behavior

WebAPI responds or async handles requests for data source priority during initial application loading.

Actual behavior

WebAPI will block until a 'select 1' is executed against all data sources configured. This is problematic in cases where database platforms have idle/standby modes where upon receiving a query they take several minutes to initialize before being able to respond to the query. (ie, databricks, redshift serverless, spark serverless)

image

This check connection appears to be the cause of the issue:
https://github.com/OHDSI/WebAPI/blob/master/src/main/java/org/ohdsi/webapi/source/SourceService.java#L108

For responding to priority it might be better to only make use of the data in the daimon tables without performing a connection test.

@anthonysena
Copy link
Collaborator

Closed via #2374

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