Skip to content

Commit

Permalink
Add docstrings to SSL parameters in Redis lock store
Browse files Browse the repository at this point in the history
  • Loading branch information
radovanZRasa committed Aug 28, 2023
1 parent 5d67ef1 commit 8cf7263
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rasa/core/lock_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,15 +173,13 @@ def finish_serving(self, conversation_id: Text, ticket_number: int) -> None:
Removes ticket from lock and saves lock.
"""

lock = self.get_lock(conversation_id)
if lock:
lock.remove_ticket_for(ticket_number)
self.save_lock(lock)

def cleanup(self, conversation_id: Text, ticket_number: int) -> None:
"""Remove lock for `conversation_id` if no one is waiting."""

self.finish_serving(conversation_id, ticket_number)
if not self.is_someone_waiting(conversation_id):
self.delete_lock(conversation_id)
Expand Down Expand Up @@ -220,6 +218,9 @@ def __init__(
password: The password which should be used for authentication with the
Redis database.
use_ssl: `True` if SSL should be used for the connection to Redis.
ssl_certfile: Path to the SSL certificate file.
ssl_keyfile: Path to the SSL private key file.
ssl_ca_certs: Path to the SSL CA certificate file.
key_prefix: prefix to prepend to all keys used by the lock store. Must be
alphanumeric.
socket_timeout: Timeout in seconds after which an exception will be raised
Expand Down

0 comments on commit 8cf7263

Please sign in to comment.