actinia-org / actinia-core

Actinia Core is an open source REST API for scalable, distributed, high performance processing of geographical data that uses mainly GRASS GIS for computational tasks (DOI: https://doi.org/10.5281/zenodo.5879231) | Tutorial: https://actinia-org.github.io/actinia-core/ | Docker: https://hub.docker.com/r/mundialis/actinia-core
https://actinia.mundialis.de/
GNU General Public License v3.0
81 stars 23 forks source link

Fix resource lock and status when Pod is restarted #131

Open mmacata opened 3 years ago

mmacata commented 3 years ago

When actinia is installed e.g. in Kubernetes and a Pod is restarted while a job is running, the job is displayed as "running" and the resource (mapset) is locked but the job was killed. When trying to terminate the job via API call (to fix status + resource lock), actinia returns an error.

Wanted behaviour is that the job status will be set to error and the resource is freed. Another possibility would be to fix the termination endpoint when connection to job was lost and to allow an admin user to reset the resource lock.

mmacata commented 3 years ago

Hint: with docker the behaviour is different but not as expected as well.