Open-EO / openeo-geopyspark-driver

OpenEO driver for GeoPySpark (Geotrellis)
Apache License 2.0
25 stars 4 forks source link

Provide "progress" in batch job status #772

Open soxofaan opened 1 month ago

soxofaan commented 1 month ago

In the category "nice to have"

GET /jobs/{job_id} has a field progress:

number [ 0 .. 100 ] Indicates the process of a running batch job in percent. Can also be set for a job which stopped due to an error or was canceled by the user. In this case, the value indicates the progress at which the job stopped. The Property may not be available for the status codes created and queued. Submitted and queued jobs only allow the value 0, finished jobs only allow the value 100.

This progress indicator can then be shown in clients (python client, web editor).

soxofaan commented 1 month ago

in https://github.com/Open-EO/openeo-python-driver/commit/16f324aa067fd28c43851127c466a69ecb516203 I already added progress 0 to status "created"/"queued" and 100 to status "finished"