Skip to content

Commit

Permalink
[processing] GDAL algorithms can now be canceled!
Browse files Browse the repository at this point in the history
Previously there was no way to terminate the GDAL process, so if you
accidently got some parameter values wrong it was very easy to end
up with a quasi-endless, non-cancelable gdal algorithm burning away cpu in the
background of a qgis session... ouch!
  • Loading branch information
nyalldawson committed Jan 8, 2021
1 parent 50b5e56 commit 54ec5ac
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions python/plugins/processing/algs/gdal/GdalAlgorithm.py
Expand Up @@ -63,9 +63,6 @@ def createInstance(self, config={}):
def createCustomParametersWidget(self, parent):
return GdalAlgorithmDialog(self, parent=parent)

def flags(self):
return QgsProcessingAlgorithm.FlagSupportsBatch # cannot cancel!

def getConsoleCommands(self, parameters, context, feedback, executing=True):
return None

Expand Down

0 comments on commit 54ec5ac

Please sign in to comment.