6e4cbac2aba40bbccdb0b80ca971ef56937c4086 dschmelt Fri Dec 3 11:54:21 2021 -0800 Fixing email time to report no RM diff --git src/utils/hubPublicMail src/utils/hubPublicMail index a8f4244..60496bc 100755 --- src/utils/hubPublicMail +++ src/utils/hubPublicMail @@ -8,31 +8,31 @@ # makes sure that only one instance of the program runs at the same time lockFname = None # switch off insecure SSL warnings urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) fromEmail="genome-www@soe.ucsc.edu" emailTemplate = """Dear UCSC Public Hub author, This is an automated email sent by the UCSC Genome Browser Group's hubPublicMail system to alert you that your public track hub at the address: %s -Has been inaccessible for 24 hours. If it continues to be offline, we may need to remove it +Has been inaccessible for at least 48 hours. If it continues to be offline, we may need to remove it from our public hubs list at https://genome.ucsc.edu/cgi-bin/hgHubConnect Do not hesitate to let us know if we can help you resolve this situation, e.g. by updating the URL where the hub is hosted or possibly hosting the files on our servers. You can reach us at genome-www@soe.ucsc.edu. Thank you for your interest and contributions, The UCSC Genome Browser Group """ # ==== functions ===== def parseArgs(): " setup logging, parse command line arguments and options. -h shows auto-generated help page " parser = optparse.OptionParser("""usage: %prog [options] hgcentralname statusFile - send email if public hub is down