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

ResourceT wraps async exceptions into syncrhonous exceptions causing it to misbehave with safe exceptions #515

Open
jappeace opened this issue Nov 27, 2024 · 0 comments

Comments

@jappeace
Copy link

I had this background job I was expecting to be killed,
most logic ran into a resource block (it's the esqueleto-streaming package).

but once it get's kill exception it's wrapped into a synchronous resourcest exception:

ResourceCleanupException {rceOriginalException = Just AsyncCancelled, rceFirstCleanupException = SqlError {sqlState = "", sqlExecStatus = FatalError, sqlErrorMsg = "connection disconnected", sqlErrorDetail = "", sqlErrorHint = ""}, rceOtherCleanupExceptions = []}

could this in case of async exceptions also be wrapped into an async resourcest exception, so that the thread dies as expected?

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

1 participant