Skip to content

Commit

Permalink
changed some log entries from info to debug level, upped the startup …
Browse files Browse the repository at this point in the history
…time to 60 sec
  • Loading branch information
vrbanecd committed Dec 9, 2024
1 parent 60188a8 commit c79439d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions teapot.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ async def lifespan(app: FastAPI):
# default: 3 minutes
CHECK_INTERVAL_SEC = config.getint("Teapot", "CHECK_INTERVAL_SEC")

STARTUP_TIMEOUT = os.environ.get("TEAPOT_STARTUP_TIMEOUT", 30)
STARTUP_TIMEOUT = os.environ.get("TEAPOT_STARTUP_TIMEOUT", 60)
# standard mode for file creation, currently rwxr-x---
# directories and files are created with the corresponding os.mkdir, os.chmod,
# os.chown commands.
Expand Down Expand Up @@ -542,7 +542,7 @@ async def stop_expired_instances():
"""
while True:
await asyncio.sleep(CHECK_INTERVAL_SEC)
logger.info("checking for expired instances")
logger.debug("checking for expired instances")
logger.debug(
"stop_expired_instances: trying to acquire 'users' lock at %s",
{datetime.datetime.now().isoformat()},
Expand Down Expand Up @@ -805,7 +805,7 @@ async def _return_or_create_storm_instance(sub):
while not running:
await anyio.sleep(1)
if loops >= STARTUP_TIMEOUT:
logger.info(
logger.debug(
"instance for user %s not reachable after %d tries... \
stop trying.",
local_user,
Expand Down

1 comment on commit c79439d

@vrbanecd
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass % ⏱️ Duration
32 0 0 32 100 19.295774999s

Passed Tests

Name ⏱️ Duration Suite
GET USER1 9.780 s Teapot-Tests
GET USER2 8.531 s Teapot-Tests
GET NO TOKEN 0.011 s Teapot-Tests
GET INVALID TOKEN 0.033 s Teapot-Tests
PUT REQUEST INVALID TOKEN 0.010 s Teapot-Tests
PUT REQUEST NO TOKEN 0.011 s Teapot-Tests
PUT REQUEST USER1 0.121 s Teapot-Tests
PUT REQUEST USER2 0.095 s Teapot-Tests
GET FILE USER1 0.065 s Teapot-Tests
GET FILE USER2 0.059 s Teapot-Tests
GET FILE NO TOKEN 0.009 s Teapot-Tests
GET FILE INVALID TOKEN 0.009 s Teapot-Tests
DELETE REQUEST USER1 0.038 s Teapot-Tests
DELETE REQUEST USER2 0.039 s Teapot-Tests
DELETE REQUEST INVALID TOKEN 0.012 s Teapot-Tests
DELETE REQUEST NO TOKEN 0.009 s Teapot-Tests
GET USER1 EXTRA_AREA 0.042 s Teapot-Tests
GET USER2 EXTRA_AREA 0.044 s Teapot-Tests
GET NO TOKEN EXTRA_AREA 0.012 s Teapot-Tests
GET INVALID TOKEN EXTRA_AREA 0.010 s Teapot-Tests
PUT REQUEST INVALID TOKEN EXTRA_AREA 0.009 s Teapot-Tests
PUT REQUEST NO TOKEN EXTRA_AREA 0.009 s Teapot-Tests
PUT REQUEST USER1 EXTRA_AREA 0.037 s Teapot-Tests
PUT REQUEST USER2 EXTRA_AREA 0.042 s Teapot-Tests
GET FILE USER1 EXTRA_AREA 0.058 s Teapot-Tests
GET FILE USER2 EXTRA_AREA 0.061 s Teapot-Tests
GET FILE NO TOKEN EXTRA_AREA 0.012 s Teapot-Tests
GET FILE INVALID TOKEN EXTRA_AREA 0.011 s Teapot-Tests
DELETE REQUEST USER1 EXTRA_AREA 0.056 s Teapot-Tests
DELETE REQUEST USER2 EXTRA_AREA 0.041 s Teapot-Tests
DELETE REQUEST INVALID TOKEN EXTRA_AREA 0.010 s Teapot-Tests
DELETE REQUEST NO TOKEN EXTRA_AREA 0.010 s Teapot-Tests

Please sign in to comment.