diff --git a/tembo-pgmq-python/README.md b/tembo-pgmq-python/README.md index 74ffd902..d8549d81 100644 --- a/tembo-pgmq-python/README.md +++ b/tembo-pgmq-python/README.md @@ -135,7 +135,7 @@ for message in read_messages: print(message) ``` -This method will continue polling until it either finds the specified number of messages (`qty`) or the `max_poll_seconds` duration is reached. The `poll_interval_ms` parameter controls the interval between successive polls, allowing you to avoid hammering the database with continuous queries. +This method will continue polling until it retrieves any messages, with a maximum of (`qty`) messages in a single poll, or until the `max_poll_seconds` duration is reached. The `poll_interval_ms` parameter controls the interval between successive polls, allowing you to avoid hammering the database with continuous queries. ### Archive the message after we're done with it @@ -287,4 +287,4 @@ try: except Exception as e: print(f"Transaction failed: {e}") ``` -In this example, the transactional_operation function is decorated with `@transaction`, ensuring all operations inside it are part of a single transaction. If an error occurs, the entire transaction is rolled back automatically. \ No newline at end of file +In this example, the transactional_operation function is decorated with `@transaction`, ensuring all operations inside it are part of a single transaction. If an error occurs, the entire transaction is rolled back automatically.