Merge pull request #1736 from pierotofy/orthomiss2

Avoid prematurely setting a task to completed status
pull/1739/head
Piero Toffanin 2025-08-29 08:21:18 -04:00 zatwierdzone przez GitHub
commit 40433bc91f
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -1028,6 +1028,7 @@ class Task(models.Model):
# and immediately reads them back into Python
# This is required because GEOS screws up the X/Y conversion
# from the raster CRS to 4326, whereas PostGIS seems to do it correctly :/
self.status = status_codes.RUNNING # avoid telling clients that task is completed prematurely
self.save()
self.refresh_from_db()