fix bug
This commit is contained in:
		@ -49,13 +49,11 @@ def parse_logs(timeout):
 | 
				
			|||||||
                            return False, "Max Retry Reached"
 | 
					                            return False, "Max Retry Reached"
 | 
				
			||||||
        except Exception as e:
 | 
					        except Exception as e:
 | 
				
			||||||
            print(f"Exception occurred: {e}", flush=True)
 | 
					            print(f"Exception occurred: {e}", flush=True)
 | 
				
			||||||
        finally:
 | 
					 | 
				
			||||||
            process.stdout.close()
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
        print("Sleeping before next log request...", flush=True)
 | 
					        print("Sleeping before next log request...", flush=True)
 | 
				
			||||||
        time.sleep(30)
 | 
					        time.sleep(30)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if time.time() - start_time > timeout:
 | 
					        if time.time() - start_time > timeout * 60:
 | 
				
			||||||
            print(f"Timeout reached: {timeout} minutes elapsed without success.", flush=True)
 | 
					            print(f"Timeout reached: {timeout} minutes elapsed without success.", flush=True)
 | 
				
			||||||
            return False, f"Timeout reached: {timeout} minutes elapsed without success."
 | 
					            return False, f"Timeout reached: {timeout} minutes elapsed without success."
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user