Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions html/check_website_and_mount.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,18 @@ def is_vm_reachable(host: str) -> bool:
# Exit without print.
sys.exit(0)
elif not email_body and os.path.exists(LOCK_FILE):
print("🚨 PAINT ALERT - The PAINT Error Detection System is Locked 🚨\n")
# If everything is working remove lock file and report this action.
print(
"It looks like PAINT is running fine, but the lock file has not yet been deleted!\n Please delete the"
f"lock file located at ``{LOCK_FILE}`` so the error detection system can run as desired!"
"✅ PAINT ALERT - The PAINT Error Detection System is Alive - LOCK FILE DELETED ✅\n"
)
print(
"It appears that PAINT has successfully self-repaired. All critical checks are now passing.\n"
f"The lock file (``{LOCK_FILE}``) has been **automatically deleted** to resume normal monitoring.\n\n"
"**Action Required:** Please verify the system integrity to ensure the fix is permanent."
)

# Delete the lock file.
os.remove(LOCK_FILE)
else:
# Nothing needs to be done (case should not be reached).
sys.exit(0)
Loading