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

Cancelling a query from RStudio #562

Closed
MarkMc1089 opened this issue Apr 21, 2023 · 3 comments
Closed

Cancelling a query from RStudio #562

MarkMc1089 opened this issue Apr 21, 2023 · 3 comments
Labels
feature a feature request or enhancement

Comments

@MarkMc1089
Copy link

Issue Description and Expected Result

Unable to gracefully stop a sent query (specifically to Oracle SQL server) from RStudio. When wanting to stop a running query, only way at present is to either wait or force quit RStudio. After force quitting the query does seem to stop eventually but the time is variable, on the order of several minutes.

See the issue below, which I followed Hadley's advice on to raise here also.
rstudio/rstudio#6287 (comment)

Database

Oracle Database 19c

Reproducible Example

Not really applicable, any long query that you subsequently want to stop before it finishes naturally.

@hadley
Copy link
Member

hadley commented Apr 24, 2023

@detule have you look at this problem at all? It's typically a matter of ensuring that we check for user interrupts in the tight loop that retrieves data from the database.

@detule
Copy link
Collaborator

detule commented Apr 24, 2023

Hi Hadley:

Yes - looked at this I think couple of years ago in a different context. The tight loop is relatively straightforward. We probably need a bit of care ( and testing ) to ensure we clean up well and leave the connection in a good state.

I'll resurrect that patch.

@hadley hadley added the feature a feature request or enhancement label Apr 24, 2023
@hadley
Copy link
Member

hadley commented Apr 24, 2023

Duplicate of #433

@hadley hadley marked this as a duplicate of #433 Apr 24, 2023
@hadley hadley closed this as completed Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement
Projects
None yet
Development

No branches or pull requests

3 participants