Merge branch 'feature/TD-1925_new' of https://github.com/taosdata/TDengine into feature/TD-1925_new
This commit is contained in:
commit
06018d4380
|
@ -194,9 +194,13 @@ class TDSql:
|
||||||
pstate = 0
|
pstate = 0
|
||||||
pl = psutil.pids()
|
pl = psutil.pids()
|
||||||
for pid in pl:
|
for pid in pl:
|
||||||
if psutil.Process(pid).name == 'taosd':
|
try:
|
||||||
pstate = 1
|
if psutil.Process(pid).name() == 'taosd':
|
||||||
break
|
print('have already started')
|
||||||
|
pstate = 1
|
||||||
|
break
|
||||||
|
except psutil.NoSuchProcess:
|
||||||
|
pass
|
||||||
if pstate:
|
if pstate:
|
||||||
tdLog.sleep(5)
|
tdLog.sleep(5)
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue