2 Commits
Author SHA1 Message Date
ietxaniz 1acd69ef6b Update schedule.yaml 2026-10-06 18:13:16 +00:00
Iñigo Etxaniz 497937a833 change load index computation 2026-07-17 06:53:44 +00:00
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ active: true
schedule: "* * * * *"
action: ensure
runOnStartup: true
imageName: python-sched:0.1
imageName: docker.izazpi.cloud/infra/infra-python:0.1.12
command: ["python", "/app/test_script.py"]
maxCpuCores: 0.5
maxMemoryMb: 128
+1 -1
View File
@@ -22,7 +22,7 @@ def logic(plant):
cpu = plant.state.get("deb13kde-cpu", 0.0)
ram = plant.state.get("deb13kde-ram", 0.0)
load_index = (cpu + ram) / 2.0
load_index = (cpu * 3.0 + ram) / 4.0
batch = plant.new_write_batch()
batch.add(ID_LOAD_INDEX, load_index, "deb13kde-load-index")