mirror of
https://github.com/blw1138/Zordon.git
synced 2025-12-17 16:58:12 +00:00
Improve performance of job status updates through caching hashes
This commit is contained in:
@@ -32,8 +32,11 @@ def generate_thumbnail_for_job(job, thumb_video_path, thumb_image_path, max_widt
|
||||
generate_thumbnail(source_path=source, dest_path=thumb_video_path, max_width=max_width)
|
||||
except Exception as e:
|
||||
logger.error(f"Error generating thumbnail for {source}: {e}")
|
||||
finally:
|
||||
|
||||
try:
|
||||
os.remove(in_progress_path)
|
||||
except FileNotFoundError:
|
||||
pass
|
||||
|
||||
# Determine best source file to use for thumbs
|
||||
if job.status == RenderStatus.COMPLETED: # use finished file for thumb
|
||||
|
||||
Reference in New Issue
Block a user