Skip to content

Fix TM1Service kwarg collision when connection params set in config.ini#158

Open
MariusWirtz wants to merge 1 commit into
masterfrom
fix/tm1-connection-param-kwarg-collision
Open

Fix TM1Service kwarg collision when connection params set in config.ini#158
MariusWirtz wants to merge 1 commit into
masterfrom
fix/tm1-connection-param-kwarg-collision

Conversation

@MariusWirtz
Copy link
Copy Markdown
Collaborator

setup_tm1_services spread config.ini params via **params while also passing connection_pool_size and session_context explicitly, raising "got multiple values for keyword argument 'connection_pool_size'". The exception was swallowed as "instance not accessible", dropping the instance and surfacing a misleading KeyError downstream in validate_tasks.

Merge RushTI-managed values as defaults that config.ini can override. Add unit tests for the collision, the max_workers default, and session_context precedence.

Description

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Code refactoring
  • CI/CD or build changes

Release Label

Checklist

  • I have tested my changes locally
  • I have updated documentation if needed
  • My code follows the project's coding style
  • I have added tests if applicable

setup_tm1_services spread config.ini params via **params while also passing
connection_pool_size and session_context explicitly, raising "got multiple
values for keyword argument 'connection_pool_size'". The exception was
swallowed as "instance not accessible", dropping the instance and surfacing
a misleading KeyError downstream in validate_tasks.

Merge RushTI-managed values as defaults that config.ini can override.
Add unit tests for the collision, the max_workers default, and
session_context precedence.
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