Skip to content

Comments

Improve pre_startup to resolve bec_config.yaml automatically for deployment#4

Merged
d-perl merged 2 commits intomainfrom
feat/update_pre_startup_get_config
Jun 12, 2025
Merged

Improve pre_startup to resolve bec_config.yaml automatically for deployment#4
d-perl merged 2 commits intomainfrom
feat/update_pre_startup_get_config

Conversation

@cappel89
Copy link
Contributor

This PR improves the get_config handling within plugin repositories to automatically identify if bec is launche within a deployment, and thereby identify the bec_config.yaml file. If the file is not found, we will use the default config with localhost:6379 instead. This change will work for all beamlines and plugin repositories directly.

@cappel89 cappel89 self-assigned this Jun 11, 2025
…mline deployments, otherwise fallback to default cfg
@cappel89 cappel89 force-pushed the feat/update_pre_startup_get_config branch from 7cb3be0 to b064f63 Compare June 11, 2025 14:52
@cappel89
Copy link
Contributor Author

tested with csaxs repo and deployment, works

@wakonig wakonig requested a review from ivan-usov June 11, 2025 15:19
@wakonig
Copy link
Member

wakonig commented Jun 11, 2025

@ivan-usov what do you think?

@d-perl
Copy link
Contributor

d-perl commented Jun 12, 2025

oops, sorry for the merge commit, forgot to change the dropdown to rebase since it's now default on our other repos

@d-perl
Copy link
Contributor

d-perl commented Jun 12, 2025

this looks good to me and works well, but does it belong in the plugin repo? if we want to give users the ability to override the config in the yaml file then this code could be hidden from them instead, no?

@ivan-usov
Copy link

Looks good to me. Then this relative to the deployment folder location can be a place for a bec client's config.

@d-perl d-perl merged commit 766ac8f into main Jun 12, 2025
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.

4 participants