Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
coolbeevip committed Nov 6, 2023
1 parent cd3196e commit f861e4c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import logging
import os
import time
from datetime import datetime
Expand All @@ -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__':
Expand Down

0 comments on commit f861e4c

Please sign in to comment.