File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
src/model/cloud-runner/providers/k8s Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -93,9 +93,9 @@ class KubernetesPods {
9393 for ( let i = 0 ; i < 6 ; i ++ ) {
9494 await new Promise ( ( resolve ) => setTimeout ( resolve , 5000 ) ) ;
9595 try {
96- const updatedPod = (
97- await kubeClient . listNamespacedPod ( namespace )
98- ) . body . items . find ( ( x ) => podName === x . metadata ?. name ) ;
96+ const updatedPod = ( await kubeClient . listNamespacedPod ( namespace ) ) . body . items . find (
97+ ( x ) => podName === x . metadata ?. name ,
98+ ) ;
9999 if ( updatedPod ?. status ?. containerStatuses && updatedPod . status . containerStatuses . length > 0 ) {
100100 const updatedContainerStatus = updatedPod . status . containerStatuses [ 0 ] ;
101101 if ( updatedContainerStatus . state ?. terminated ) {
@@ -109,9 +109,7 @@ class KubernetesPods {
109109 CloudRunnerLogger . log (
110110 `Pod ${ podName } container failed with exit code ${ updatedExitCode } after waiting.` ,
111111 ) ;
112- errorDetails . push (
113- `Container terminated after wait: exit code ${ updatedExitCode } ` ,
114- ) ;
112+ errorDetails . push ( `Container terminated after wait: exit code ${ updatedExitCode } ` ) ;
115113 break ;
116114 }
117115 }
You can’t perform that action at this time.
0 commit comments