chore: provide version strings to stop-queue

This commit is contained in:
tcely
2026-06-18 07:34:02 -04:00
parent cd6b70e2bc
commit 5bc758fbfd

View File

@@ -202,10 +202,15 @@ if '__main__' == __name__:
if is_old(vf, lock, df) and not os.path.exists(lf):
atomic_write(lf, 1)
if os.path.exists(lf):
subprocess.Popen(
['/usr/bin/env', 'python3', '/app/manage.py', 'stop-queue', service_name],
stdout=-1, stderr=-1, start_new_session=True,
)
latest_version = exists_read(vf, '').strip()
cmd = [
'/usr/bin/env', 'python3', '/app/manage.py', 'stop-queue',
'--installed', yt_dlp_version,
'--latest', latest_version,
'--name', 'yt-dlp',
service_name,
]
subprocess.Popen(cmd, stdout=-1, stderr=-1, start_new_session=True)
# if gunicorn is marked as intentionally down, nothing else matters
df = get_down_file('gunicorn')
if os.path.exists(df):