diff --git a/locales/en.json b/locales/en.json index f57bce9d..4ca0048e 100644 --- a/locales/en.json +++ b/locales/en.json @@ -53,5 +53,6 @@ "download_bad_status_code": "{url:s} returned status code {code:s}", "command_unknown": "Command '{command:s}' unknown ?", "warn_the_user_about_waiting_lock": "Another YunoHost command is running right now, we are waiting for it to finish before running this one", - "warn_the_user_about_waiting_lock_again": "Still waiting..." + "warn_the_user_about_waiting_lock_again": "Still waiting...", + "warn_the_user_that_lock_is_acquired": "the other command just complet, now starting this command" } diff --git a/moulinette/core.py b/moulinette/core.py index 4de9d0fc..aba06afb 100644 --- a/moulinette/core.py +++ b/moulinette/core.py @@ -504,6 +504,10 @@ class MoulinetteLock(object): # Wait before checking again time.sleep(self.interval) + # we have warned the user that we were waiting, for better UX also them + # that we have stop waiting and that the command is processing now + if warning_treshold != 15: + logger.warning(moulinette.m18n.g('warn_the_user_that_lock_is_acquired')) logger.debug('lock has been acquired') self._locked = True