Skip to content

Commit 260f5ea

Browse files
committed
* removed profiling
1 parent f05bab5 commit 260f5ea

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

service/backend/main.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,6 @@ async def get_current_active_user(token: str = Depends(oauth2_scheme), db=Depend
116116
raise HTTPException(status_code=401, detail="User not found for token")
117117
return user
118118

119-
@app.get("/profile")
120-
def profile():
121-
subprocess.Popen(
122-
["py-spy", "record", "-o", "profile.svg", "--pid", str(os.getpid()), "--duration", "32"]
123-
)
124-
return {"msg": "Profiling started 32"}
125-
126119
@app.post("/register", response_model=schemas.User)
127120
async def register(user: schemas.UserCreate, db=Depends(get_async_db)):
128121
if len(user.username) <= 6:
@@ -591,6 +584,7 @@ async def cleanup_old_records():
591584
user upload folders asynchronously.
592585
"""
593586
while True:
587+
print("Cleaning up old records...")
594588
db_gen = get_async_db()
595589
db = await anext(db_gen)
596590
try:

0 commit comments

Comments
 (0)