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 32bae00 commit fd4f1af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/otaclient_common/retry_task_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ def _watchdog(
def _task_done_cb(
self, fut: Future[Any], /, *, item: T, func: Callable[[T], Any]
) -> None:
self._concurrent_semaphore.release() # always release se first
self._fut_queue.put_nowait(fut)
self._concurrent_semaphore.release()

# ------ on task succeeded ------ #
if not fut.exception():
Expand Down

0 comments on commit fd4f1af

Please sign in to comment.