Skip to content

Implement reconciliation logic, using kopf #3

Description

@ryansingman

Implement reconciliation logic for CarbonAwareJob, using kopf

Pseudocode for the reconciliation algorithm should be as follows:

  1. On CAJob creation / update, find the optimal scheduled time using https://docs.carbonaware.dev/scheduler/ (the Python client) and update the status
  2. Every minutes (configurable by environment variable, default to 10m), re-evaluate the optimal scheduled time (keeping in mind to adjust the time window as time passes)
  3. At the optimal time, create a job (and propagate status to the CarbonAwareJob resource)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions