d02300cbe391cf7cbea38da034b4826c305076d5
lrnassar
  Fri Jan 2 09:25:34 2026 -0800
Extending the check to 45 days as sometimes the asia logs are about 35 days before updating. No RM.

diff --git src/utils/qa/checkErrorLogsAreUpToDate.py src/utils/qa/checkErrorLogsAreUpToDate.py
index 2ae4b73fdb6..0de6aad00af 100644
--- src/utils/qa/checkErrorLogsAreUpToDate.py
+++ src/utils/qa/checkErrorLogsAreUpToDate.py
@@ -1,26 +1,26 @@
 #Checks that the Asia, Euro and hgw1/2 logs in the trimmed logs directory
 #are no more than a month old. This ensures our crons from primarily Asia/Euro
 #are still running
 
 import datetime, subprocess
 
 def bash(cmd):
     """Input bash cmd and return stdout"""
     rawOutput = subprocess.run(cmd,check=True, shell=True, stdout=subprocess.PIPE, universal_newlines=True)
     return(rawOutput.stdout.split('\n')[0:-1])
 
 def checkDateTimeOnFile(machine,lastMonth):
     latestLog = bash("ls /hive/users/chmalee/logs/trimmedLogs/result/"+machine+" | tail -1")
     date = latestLog[0].split(".")[0]
     datetime_object = datetime.datetime.strptime(date, '%Y%m%d')
     if datetime_object < lastMonth:
-        print("The following machine logs are more than a month old. Latest log: "+machine+": "+str(date))
+        print("The following machine logs are more than 45 days old. Latest log: "+machine+": "+str(date))
 
 def checkDateTimeOnAllMachines():
     machinesToCheck = ['hgw1','hgw2','asiaNode','euroNode']
     today = datetime.datetime.today()
-    lastMonth = today - datetime.timedelta(days=30)
+    lastMonth = today - datetime.timedelta(days=45)
     for machine in machinesToCheck:
         checkDateTimeOnFile(machine,lastMonth)
         
 checkDateTimeOnAllMachines()