Skip to content

Commit

Permalink
Avoiding unexplained hibernation
Browse files Browse the repository at this point in the history
  • Loading branch information
dchourasia authored Oct 9, 2024
1 parent 022f049 commit 7b26ddd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hibernate_clusters_daily.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def good_time_to_hibernate_cluster(inactive_hours_start:str):
inactive_hours_start = datetime.datetime.strptime(inactive_hours_start, '%H:%M:%S')
# if the inactive hours start is misconfigured, default to hibernating cluster immediately
except ValueError:
return true
return False

current_utc_time = datetime.datetime.strptime(datetime.datetime.now(datetime.timezone.utc).strftime('%H:%M:%S'), '%H:%M:%S')
day_start_time = datetime.datetime.strptime(day_start_time, '%H:%M:%S')
Expand Down Expand Up @@ -244,4 +244,4 @@ def main():


if __name__ == '__main__':
main()
main()

0 comments on commit 7b26ddd

Please sign in to comment.