Lee Ning Jie Leon10/18/2023, 9:58 AM
on the cluster and expecting to see the logs on runtime but im not till the task ends
kubectl logs pod_name
@task def print_task(): print("Starting") duration = 5 * 60 interval = 30 iterations = duration // interval for _ in range(iterations): print("Print") time.sleep(interval)
Bernhard Stadlbauer10/18/2023, 12:52 PM
as an environment variable to check whether that helps? You should be able to set the environment variable using the
keyword in the
Lee Ning Jie Leon10/19/2023, 6:05 AM
wasn't required. Was trying to figure out why were all the ShellTask logging unresponsive and its probably due to this print without the flush too.
for the ShellTask and they print as expected now. Thanks alot!