Skip to content

Conversation

@timma-yelp
Copy link
Contributor

Added code required to pass configs required for some of the services

'service_account_name': service_account_name,
'ui_port': int(ui_port),
'user': os.environ.get('USER'),
'aws_account_id': spark_conf.pop('aws_account_id', None),
Copy link
Member

Choose a reason for hiding this comment

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

if we extract the account id code into a function and throw an lru_cache or something at it, then we could avoid using spark_conf as a way to pass short-lived data to this function - but i guess this is fine if y'all are fine with it :p

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i thought of that and felt short live is simpler and better than function and lru cache

@timma-yelp timma-yelp merged commit 566d5fc into master Nov 12, 2025
1 check passed
@timma-yelp timma-yelp deleted the timma/pass_config_required_for_some_of_the_services branch November 12, 2025 15:37
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.

3 participants