From f861e4c87d171adf5e1a93cab1fac3da40fbc89e Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Tue, 7 Nov 2023 00:09:54 +0800 Subject: [PATCH] Add CI --- main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.py b/main.py index c41b692..98a7e36 100644 --- a/main.py +++ b/main.py @@ -1,3 +1,4 @@ +import logging import os import time from datetime import datetime @@ -11,6 +12,8 @@ def job_wrapper(): current_hour = datetime.now().hour if 6 <= current_hour < 24: guard.lightsail_instance_public_ip_keepalive(name=os.environ['LIGHTSAIL_INSTANCE_NAME']) + else: + logging.info('Skip') if __name__ == '__main__':