hussein-awala commented on issue #33402:
URL: https://github.com/apache/airflow/issues/33402#issuecomment-1679598748
Actually we set the resource version to 0 on failure:
```python
except Exception:
self.log.exception("Unknown error in KubernetesJobWatcher.
Failing")
self.resource_version = "0"
ResourceVersion().resource_version[self.namespace] = "0"
raise
```
So we should not lose any event.
I wonder if your problem is just with failed tasks (failed pods), because by
default they are not deleted, you need to set
`AIRFLOW__KUBERNETES_EXECUTOR__DELETE_WORKER_PODS_ON_FAILURE` to `True` to tell
the executor to delete them too.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]