-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: wait for pod to be running before streaming logs
Modify the StreamJobLogs function to wait for the pod associated with the job to be in the Running state before streaming logs. Add a loop that polls the pod status until it is running or a timeout is reached. This ensures that the logs are streamed only when the pod is ready, avoiding potential issues with accessing logs of a pod that is not yet running.
- Loading branch information
Showing
1 changed file
with
35 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters