A hack to get video id from the video worker

master
blank X 2 years ago
parent b34f14a431
commit f108664c94
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5

@ -237,7 +237,7 @@ async def _video_worker():
proc = await asyncio.create_subprocess_exec(*(await construct_command()), stdin=asyncio.subprocess.PIPE, stdout=log_file, stderr=log_file)
except BaseException:
tempdir_obj.cleanup()
raise
raise Exception(f'This is a hack to retrieve the video id ({video_json["id"]}), the actual exception should be above')
upload_queue.put_nowait((tempdir_obj, video_json))
video_queue.task_done()

Loading…
Cancel
Save