qgisprocess icon indicating copy to clipboard operation
qgisprocess copied to clipboard

killing a qgis process?

Open hansvancalster opened this issue 2 years ago • 0 comments

Hi!

Congratulations with this very nice package! I'm a new user and have found it to be extremely useful.

I noticed that interrupting a process in RStudio (via Interrupt R process button) that was started with qgis_run_algorithm() does not kill the external GIS process (at least not with the saga function I called). With aid of @florisvdh I learned that the external process is executed with processx::run()

The help pages of processx has a section about killing a process. Maybe you can judge whether this contains information that would allow the sub-process to be killed when a user interrupts R? I also noticed
argument cleanup_tree which sounds helpful?

I'm on Windows 10.

hansvancalster avatar Mar 09 '22 13:03 hansvancalster