Skip to content

Conversation

@vgvoleg
Copy link
Collaborator

@vgvoleg vgvoleg commented Dec 11, 2025

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds the ability to propagate RetrySettings from database connections to cursor operations in the YDB DBAPI implementation. The RetrySettings object is now initialized in connections, exposed via getter/setter methods, passed to cursors during creation, and properly utilized when invoking retry operations. This enables users to customize retry behavior for their database operations.

  • Added retry_settings property to BaseConnection with corresponding getter/setter methods
  • Updated both Cursor and AsyncCursor constructors to accept and store retry_settings
  • Propagated retry_settings to all retry_operation_sync and retry_operation_async calls

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
ydb_dbapi/connections.py Added retry_settings initialization in BaseConnection.__init__, implemented getter/setter methods (set_ydb_retry_settings/get_ydb_retry_settings), and updated cursor creation in both Connection and AsyncConnection to pass retry_settings
ydb_dbapi/cursors.py Updated Cursor and AsyncCursor constructors to accept and store retry_settings parameter, and propagated it to all retry_operation_sync and retry_operation_async calls in query execution methods

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@vgvoleg vgvoleg merged commit f0ab5cc into main Dec 11, 2025
6 checks passed
@vgvoleg vgvoleg deleted the retry_settings branch December 11, 2025 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants