Radeity commented on code in PR #14379:
URL:
https://github.com/apache/dolphinscheduler/pull/14379#discussion_r1259109814
##########
dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/am/KubernetesApplicationManager.java:
##########
@@ -180,16 +182,25 @@ private TaskExecutionStatus
getApplicationStatus(KubernetesApplicationManagerCon
*/
public LogWatch getPodLogWatcher(KubernetesApplicationManagerContext
kubernetesApplicationManagerContext) {
KubernetesClient client =
getClient(kubernetesApplicationManagerContext);
- FilterWatchListDeletable<Pod, PodList, PodResource> watchList =
- getDriverPod(kubernetesApplicationManagerContext);
- List<Pod> driverPod = watchList.list().getItems();
- if (CollectionUtils.isEmpty(driverPod)) {
- return null;
+ boolean podIsReady = false;
+ Pod pod = null;
+ while (!podIsReady) {
+ FilterWatchListDeletable<Pod, PodList, PodResource> watchList =
+ getListenPod(kubernetesApplicationManagerContext);
+ List<Pod> podList = watchList.list().getItems();
+ if (CollectionUtils.isEmpty(podList)) {
+ return null;
Review Comment:
Really appreciate, I'll make some changes later today :D
--
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]