diff --git a/src/otaclient_common/retry_task_map.py b/src/otaclient_common/retry_task_map.py index 39f546f4d..221fc9521 100644 --- a/src/otaclient_common/retry_task_map.py +++ b/src/otaclient_common/retry_task_map.py @@ -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():