summaryrefslogtreecommitdiff
path: root/opendc-compute/opendc-compute-failure/src
diff options
context:
space:
mode:
authorSacheendra Talluri <sacheendra.t@gmail.com>2025-03-27 16:14:39 +0100
committerGitHub <noreply@github.com>2025-03-27 16:14:39 +0100
commitb20dd5ebb48465470b9632dc92ecfb1794a8a4bf (patch)
tree0aeab9ad4b366cfe9e8aa79f841563e7f91758ab /opendc-compute/opendc-compute-failure/src
parentea45406229c8349e44c88f4112fe25435b59e4e9 (diff)
Support carbon forecasting in timeshift (#327)
* Remove task from scheduler bookkeeping after failure * Support carbon forecasting in timeshift * Register scheduler and carbonmodel in context * Preliminary working task stopping; carbon intensity bug * Working carbon based stop. Two timeshift thresholds * Add a pause state task and guest * Move task stopper to allocation spec * Start tracking num pauses
Diffstat (limited to 'opendc-compute/opendc-compute-failure/src')
-rw-r--r--opendc-compute/opendc-compute-failure/src/main/kotlin/org/opendc/compute/failure/hostfault/StartStopHostFault.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/opendc-compute/opendc-compute-failure/src/main/kotlin/org/opendc/compute/failure/hostfault/StartStopHostFault.kt b/opendc-compute/opendc-compute-failure/src/main/kotlin/org/opendc/compute/failure/hostfault/StartStopHostFault.kt
index 8d167322..5738b014 100644
--- a/opendc-compute/opendc-compute-failure/src/main/kotlin/org/opendc/compute/failure/hostfault/StartStopHostFault.kt
+++ b/opendc-compute/opendc-compute-failure/src/main/kotlin/org/opendc/compute/failure/hostfault/StartStopHostFault.kt
@@ -41,7 +41,7 @@ public class StartStopHostFault(
for (host in victims) {
val guests = host.getGuests()
- val snapshots = guests.map { it.virtualMachine!!.getSnapshot() }
+ val snapshots = guests.map { it.virtualMachine!!.snapshot }
val tasks = guests.map { it.task }
host.fail()