Skip to content

Commit

Permalink
forgot to update recent_container_restart
Browse files Browse the repository at this point in the history
  • Loading branch information
nemacysts committed Sep 18, 2024
1 parent 591e3d9 commit d062095
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion paasta_tools/kubernetes_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import os
import re
from datetime import datetime
from datetime import timezone
from enum import Enum
from functools import lru_cache
from inspect import currentframe
Expand Down Expand Up @@ -2947,7 +2948,7 @@ def recent_container_restart(
last_timestamp: Optional[int],
time_window_s: int = 900, # 15 mins
) -> bool:
min_timestamp = datetime.now().timestamp() - time_window_s
min_timestamp = datetime.now(timezone.utc).timestamp() - time_window_s
return (
restart_count > 0
and last_state == "terminated"
Expand Down

0 comments on commit d062095

Please sign in to comment.