Class: QgsProcessingAlgRunnerTask¶
QgsTask task which runs a QgsProcessingAlgorithm
in a background task.
Class Hierarchy¶
Base classes¶
Abstract base class for long running background tasks.  | 
|
Methods
Returns   | 
Signals
Emitted when the algorithm has finished execution.  | 
- class qgis.core.QgsProcessingAlgRunnerTask[source]¶
 Bases:
QgsTask- __init__(algorithm: QgsProcessingAlgorithm | None, parameters: Dict[str, Any], context: QgsProcessingContext, feedback: QgsProcessingFeedback | None = None, flags: QgsTask.Flags | QgsTask.Flag = QgsTask.CanCancel)
 Constructor for QgsProcessingAlgRunnerTask. Takes an
algorithm, algorithmparametersand processingcontext.Since QGIS 3.26, the
flagsargument allows control over task flags.- Parameters:
 algorithm (Optional[QgsProcessingAlgorithm])
parameters (Dict[str, Any])
context (QgsProcessingContext)
feedback (Optional[QgsProcessingFeedback] = None)
flags (Union[QgsTask.Flags, QgsTask.Flag] = QgsTask.CanCancel)
- algorithmCanceled(self) bool[source]¶
 Returns
Trueif the algorithm was canceled.Added in version 3.26.
- Return type:
 bool
- signal executed(successful: bool, results: Dict[str, object])[source]¶
 Emitted when the algorithm has finished execution. If the algorithm completed execution without errors then
successfulwill beTrue. Theresultsargument contains the results reported by the algorithm.- Parameters:
 successful (bool)
results (Dict[str, object])