Skip to content

Commit

Permalink
always release se first
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodong-Yang committed Jun 24, 2024
1 parent 111d5bc commit 791c334
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/otaclient/app/create_standby/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,11 +332,11 @@ def _initializer():
thread_local.view = memoryview(buffer)

def _task_done_callback(fut: Future[Any]):
max_pending_tasks.release() # always release se first
if exc := fut.exception():
logger.warning(
f"detect error during file preparing, still continue: {exc!r}"
)
max_pending_tasks.release()

pool = ThreadPoolExecutor(
max_workers=cfg.MAX_PROCESS_FILE_THREAD,
Expand Down

0 comments on commit 791c334

Please sign in to comment.