Class: QgsProcessingAlgRunnerTask

class qgis.core.QgsProcessingAlgRunnerTask(algorithm: QgsProcessingAlgorithm, parameters: Dict[str, Any], context: QgsProcessingContext, feedback: QgsProcessingFeedback = None)

Bases: QgsTask

Constructor for QgsProcessingAlgRunnerTask. Takes an algorithm, algorithm parameters and processing context.

QgsTask task which runs a QgsProcessingAlgorithm in a background task.

New in version 3.0.

Parameters
cancel(self)
childEvent()
connectNotify()
customEvent()
disconnectNotify()
executed

Emitted when the algorithm has finished execution. If the algorithm completed execution without errors then successful will be true. The results argument contains the results reported by the algorithm. [signal]

finished(self, result: bool)
Parameters

result (bool) –

isCanceled()
isSignalConnected()
receivers()
run(self) → bool
Return type

bool

sender()
senderSignalIndex()
setProgress()
timerEvent()