Skip to content

Commit

Permalink
feat: prevent service cool startup
Browse files Browse the repository at this point in the history
Signed-off-by: binaryYuki <[email protected]>
  • Loading branch information
binaryYuki committed Oct 9, 2024
1 parent 7dcc941 commit da13dc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _cronjobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ async def keerRedisAlive():
Keep Redis alive avoid server from cool startup
"""
await redis_set_key("alive", "yes", ex=60 * 60 * 24)
print("Redis is alive")
# print("Redis is alive")
await redis_client.delete("alive")
return True

Expand All @@ -129,5 +129,5 @@ async def keepMySQLAlive():
Keep MySQL alive avoid server from cool startup
"""
await test_db_connection()
print("MySQL is alive")
# print("MySQL is alive")
return True

0 comments on commit da13dc2

Please sign in to comment.