diff --git a/django_project/cplus_api/utils/worker_analysis.py b/django_project/cplus_api/utils/worker_analysis.py index 6e0a4b1..aa85269 100644 --- a/django_project/cplus_api/utils/worker_analysis.py +++ b/django_project/cplus_api/utils/worker_analysis.py @@ -587,8 +587,7 @@ def get_priority_layers(self): def cancel_task(self, exception=None): self.error = exception - # set the cancel flag to True - self.processing_cancelled = True + self.cancel() def log_message(self, message: str, name: str = "qgis_cplus", info: bool = True, notify: bool = True):