Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create RepairConfiguration class for repair configurations #716

Closed
VictorCavichioli opened this issue Sep 19, 2024 · 1 comment
Closed
Assignees
Labels
enhancement New feature or request PoC/Agent Tasks related to new generation of ecchronos as an agent

Comments

@VictorCavichioli
Copy link
Contributor

VictorCavichioli commented Sep 19, 2024

Story Description:
To allow repair operations to be performed in a parameterized and consistent way, we need to encapsulate all repair configuration properties in a single class. This will simplify the management of operations and allow adjustments and optimizations to be made centrally, without the need to modify multiple points in the code. Additionally, this class will provide flexibility to add new configuration parameters in the future.

The propose is to create two classes, one to map the instructions from ecc.yaml in the application module and another in the core module to receive this information and pass for the repair jobs

Acceptance Criteria:

[Acceptance Criterion 1]: Code designed as described.

[Acceptance Criterion 2]: unit-tests done.

Definition of Done:

Code approved by maintainers

Notes:

This is how it should looks like on the ecc.yaml:

repair:
  interval:
    time: 7
    unit: days
  initial_delay:
    time: 1
    unit: days
  priority:
    granularity_unit: HOURS
  unwind_ratio: 0.0
  backoff:
    time: 30
    unit: MINUTES
  repair_type: incremental

Related to #652

@VictorCavichioli
Copy link
Contributor Author

PR merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request PoC/Agent Tasks related to new generation of ecchronos as an agent
Projects
None yet
Development

No branches or pull requests

1 participant