这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion openage/convert/processor/export/media_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,12 @@ def _export_multithreaded(
# Small optimization that saves some time for small exports
worker_count = min(multiprocessing.cpu_count(), len(requests))

def error_callback(exception: Exception):
"""
Error callback for the worker pool.
"""
raise exception

# Create a manager for sharing data between the workers and main process
with multiprocessing.Manager() as manager:
# Workers write the image metadata to this queue
Expand Down Expand Up @@ -295,7 +301,8 @@ def _export_multithreaded(
target_path,
*itargs
),
kwds=kwargs
kwds=kwargs,
error_callback=error_callback
)

# Log file information
Expand Down