kube-HPC / hkube

🐟 High Performance Computing over Kubernetes - Core Repo 🎣
http://hkube.io
MIT License
307 stars 20 forks source link

error in logs of exit in python wrapper, when init was never invoked #1789

Closed golanha closed 9 months ago

golanha commented 1 year ago

In case an extra unneeded algorithm job is createed, it will exit after a few seconds when it find out there is no task to for it to be handled. Since no task was ever assigned to it an innver attribute "algorithm" is never assigned. During invocation of exit an error accures since we expect the algorithm attribute to be filled.

Solution: Check for algotihm attribute for null before referencing it.