client.commands.config

Configuration management commands.

Commands for viewing and updating Jobmon configuration: - Update configuration values

Functions

update_config_value(→ str)

Update a configuration value in the defaults.yaml file using dot notation.

Module Contents

client.commands.config.update_config_value(key: str, value: str, config_file: str | None = None) str

Update a configuration value in the defaults.yaml file using dot notation.

Parameters:
  • key – Dot-notated key (e.g., ‘http.retries_attempts’, ‘distributor.poll_interval’)

  • value – New value to set

  • config_file – Optional path to specific config file to update

Returns:

Success message indicating what was updated

Raises:

ValueError – If the key doesn’t exist in the current configuration