You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We were previously advised that when calling the python program inside a container. we should call it with a line such as:
python -u main.py 2>&1 | tee /hkube-logs/stdout.log
However, it turns out that if we add the "tee /hkube-logs/stdout.log" section to the script and main.py crashes. hkube will not detect the crash and will run the algorithm either forever or untill ttl is reached.
"tee /hkube-logs/stdout.log" section is therefor unusable. I can add code to write logs to the "/hkube-logs/stdout.log" file. However the last time I checked. hkube_python_wrapper uses a lot of print() commands (instead of logging using a logger) that would not be captured this way.
Please advise on how to proceed.
The text was updated successfully, but these errors were encountered:
example algorithm in python that should replicate that:
importctypesimporttimedefstart(args, hkubeapi):
time.sleep(1)
print('sending ctype error')
data=ctypes.c_char_p(-1).value#<- I think you only need thisreturn"hello"
We were previously advised that when calling the python program inside a container. we should call it with a line such as:
python -u main.py 2>&1 | tee /hkube-logs/stdout.log
However, it turns out that if we add the "tee /hkube-logs/stdout.log" section to the script and main.py crashes. hkube will not detect the crash and will run the algorithm either forever or untill ttl is reached.
"tee /hkube-logs/stdout.log" section is therefor unusable. I can add code to write logs to the "/hkube-logs/stdout.log" file. However the last time I checked. hkube_python_wrapper uses a lot of print() commands (instead of logging using a logger) that would not be captured this way.
Please advise on how to proceed.
The text was updated successfully, but these errors were encountered: