Skip to content

Commit

Permalink
Fix cancel task
Browse files Browse the repository at this point in the history
  • Loading branch information
zamuzakki committed Oct 11, 2024
1 parent 9dfd53b commit 26f4585
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions django_project/cplus_api/utils/worker_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 26f4585

Please sign in to comment.