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

[BUG] FastAPI + Great Expectations + MSSQL (requests accumulate in sleeping status) #9648

Open
IgorShcherbakov opened this issue Mar 22, 2024 · 2 comments

Comments

@IgorShcherbakov
Copy link

IgorShcherbakov commented Mar 22, 2024

If you run GE in a container (Kubernetes), then after performing checks in the database you can see requests in the “suspended” status. Is it possible to forcefully close all connections to the database after performing the checks?

Example query:
SELECT sum(CASE WHEN ([PK_ID] IS NOT NULL) THEN 1 ELSE 0 END) AS [column_values.null.unexpected_count]
FROM [#gx_temp_d56615b6]

Great Expectations Version: 0.18.8

@IgorShcherbakov IgorShcherbakov changed the title Suspended requests [BUG] FastAPI + Great Expectations (requests accumulate in sleeping status) Mar 26, 2024
@IgorShcherbakov IgorShcherbakov changed the title [BUG] FastAPI + Great Expectations (requests accumulate in sleeping status) [BUG] FastAPI + Great Expectations + MSSQL (requests accumulate in sleeping status) Mar 26, 2024
@IgorShcherbakov
Copy link
Author

IgorShcherbakov commented Mar 27, 2024

The problem is in the "run" method of the "Checkpoint" class. Resources are not released.

@IgorShcherbakov
Copy link
Author

There is no way to terminate the GE without ending the program completely. For example, context.engine.dispose() and context.connection.close().

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

No branches or pull requests

2 participants