Open-EO / openeo-geopyspark-driver

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

k8s: event based job tracking? #300

Open jdries opened 1 year ago

jdries commented 1 year ago

On kubernetes, there is an event api that can inform us about spark application transitions: kubectl --kubeconfig dev.yml -n spark-jobs get events --field-selector involvedObject.kind=SparkApplication --sort-by=.metadata.creationTimestamp

This might allow us to improve job tracking:

soxofaan commented 1 year ago

Maybe I'm misunderstanding, but you still have to run this get events command on regular basis, right? So you still need a loop or cron system to poll this event listing, which means it won't help much with

reduced delay between event and update in openEO state

(unless the polling is considerably lighter, so you can increase the poll frequency)