diff --git a/components/lock.rst b/components/lock.rst index 55ddcf377b3..7b2c131947d 100644 --- a/components/lock.rst +++ b/components/lock.rst @@ -158,7 +158,7 @@ method, the resource will stay locked until the timeout:: .. tip:: - To avoid letting the lock in a locking state, it's recommended to wrap the + To avoid leaving the lock in a locked state, it's recommended to wrap the job in a try/catch/finally block to always try to release the expiring lock. In case of long-running tasks, it's better to start with a not too long TTL and