async def renew_lock(self):
await self._can_run()<EOL>expiry = await self._mgmt_request_response(<EOL>REQUEST_RESPONSE_RENEW_SESSION_LOCK_OPERATION,<EOL>{'<STR_LIT>': self.session_id},<EOL>mgmt_handlers.default)<EOL>self.locked_until = datetime.datetime.fromtimestamp(expiry[b'<STR_LIT>']/<NUM_LIT>)<EOL>
Renew the session lock.

        This operation must be performed periodically in order to retain a lock on the session
        to continue message processing. Once the lock is lost the connection will be closed.
        This operation can also be performed as an asynchronous background task by registering the session
        with an `azure.servicebus.aio.AutoLockRenew` instance.

        Example:
            .. literalinclude:: ../examples/async_examples/test_examples_async.py
                :start-after: [START receiver_renew_session_lock]
                :end-before: [END receiver_renew_session_lock]
                :language: python
                :dedent: 4
                :caption: Renew the sesison lock.