Implemented start of defrost timer

This commit is contained in:
Kevin Veen-Birkenbach 2023-12-15 07:06:09 +01:00
parent 4912b39baf
commit 585f3afa08

View File

@ -109,7 +109,7 @@ def defrost(filtered_services,timeout_sec):
max_attempts = timeout_sec / break_time_sec max_attempts = timeout_sec / break_time_sec
wait_for_all_services_to_stop(filtered_services, max_attempts, attempt, break_time_sec) wait_for_all_services_to_stop(filtered_services, max_attempts, attempt, break_time_sec)
for service in filtered_services: for service in filtered_services + [f"system-maintenance-service-{action}"]:
print(f"Unfreezing: {service}") print(f"Unfreezing: {service}")
if service_file_exists(service, "timer"): if service_file_exists(service, "timer"):
timer_name = f"{service}.timer" timer_name = f"{service}.timer"