Files
dj/integration-work/historical_cleanup_launch_enqueue.py
T
2026-11-13 11:46:25 +08:00

7 lines
464 B
Python

import pathlib,subprocess,json
root=pathlib.Path('/home/ps/huobao-video-cleanup');out=root/'historical-20261112'
assert not (out/'enqueue.log').exists(),'Enqueue already started; inspect its progress'
with (out/'enqueue.log').open('w') as log:
p=subprocess.Popen(['python3',str(root/'historical_cleanup_enqueue_server.py')],stdout=log,stderr=subprocess.STDOUT,start_new_session=True)
print(json.dumps({'started':p.pid,'scope':'approved historical videos only'}))