11 lines
352 B
Python
11 lines
352 B
Python
import subprocess, time, sys
|
|
WAIT = 150 * 60
|
|
print(f"sleeping {WAIT//60} min, then collect", flush=True)
|
|
time.sleep(WAIT)
|
|
for i in range(5):
|
|
r = subprocess.run([sys.executable, "fleet_collect.py"], capture_output=True, text=True)
|
|
print(r.stdout[-3000:], r.stderr[-1000:], flush=True)
|
|
if r.returncode == 0:
|
|
break
|
|
time.sleep(120)
|