mirror of https://gitlab.com/bashrc2/epicyon
				
				
				
			Allow some time between thread start and becoming alive
							parent
							
								
									b023cda55d
								
							
						
					
					
						commit
						ce3e372459
					
				|  | @ -85,10 +85,10 @@ def removeDormantThreads(baseDir: str,threadsList: [],debug: bool) -> None: | ||||||
| 
 | 
 | ||||||
|         if th.isStarted: |         if th.isStarted: | ||||||
|             if not th.is_alive(): |             if not th.is_alive(): | ||||||
|  |                 if (currTime-th.startTime).total_seconds()>10: | ||||||
|                     if debug: |                     if debug: | ||||||
|                     print('DEBUG: thread is not alive') |                         print('DEBUG: thread is not alive ten seconds after start') | ||||||
|                     removeThread=True |                     removeThread=True | ||||||
|             else: |  | ||||||
|             # timeout for started threads |             # timeout for started threads | ||||||
|             if (currTime-th.startTime).total_seconds()>120: |             if (currTime-th.startTime).total_seconds()>120: | ||||||
|                 if debug: |                 if debug: | ||||||
|  | @ -96,7 +96,7 @@ def removeDormantThreads(baseDir: str,threadsList: [],debug: bool) -> None: | ||||||
|                 removeThread=True |                 removeThread=True | ||||||
|         else: |         else: | ||||||
|             # timeout for threads which havn't been started |             # timeout for threads which havn't been started | ||||||
|             if (currTime-th.startTime).total_seconds()>60*10: |             if (currTime-th.startTime).total_seconds()>600: | ||||||
|                 if debug: |                 if debug: | ||||||
|                     print('DEBUG: unstarted thread timed out') |                     print('DEBUG: unstarted thread timed out') | ||||||
|                 removeThread=True |                 removeThread=True | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue