In case of errors on linked services, the parcel calculation might fail, leading to a never-ending spinner on the spatial reference box.
There should be some sort of recalculation being triggered somehow.
Improvement
Each time a client requests the parcels of a geometry using the GeomParcelsView, certain checks are done to differ between states like in-the-making or no-results. However, since the background process (in celery) can not be watched by the view class directly, we need to extent the Geometry model in a way, that we can directly see whether the process of calculating is still running.
If the process is "still running" but a certain time has passed, we can assume the process died in one or another way. In this case the GeomParcelsView shall trigger the calculation again.
# Status quo
In case of errors on linked services, the parcel calculation might fail, leading to a never-ending spinner on the spatial reference box.
There should be some sort of recalculation being triggered somehow.
# Improvement
Each time a client requests the parcels of a geometry using the `GeomParcelsView`, certain checks are done to differ between states like in-the-making or no-results. However, since the background process (in celery) can not be watched by the view class directly, we need to extent the `Geometry` model in a way, that we can directly see whether the process of calculating is still running.
If the process is "still running" but a certain time has passed, we can assume the process died in one or another way. In this case the `GeomParcelsView` shall trigger the calculation again.
Status quo
In case of errors on linked services, the parcel calculation might fail, leading to a never-ending spinner on the spatial reference box.
There should be some sort of recalculation being triggered somehow.
Improvement
Each time a client requests the parcels of a geometry using the
GeomParcelsView
, certain checks are done to differ between states like in-the-making or no-results. However, since the background process (in celery) can not be watched by the view class directly, we need to extent theGeometry
model in a way, that we can directly see whether the process of calculating is still running.If the process is "still running" but a certain time has passed, we can assume the process died in one or another way. In this case the
GeomParcelsView
shall trigger the calculation again.Merged in #384