Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pytest 실행시 'shape is not defined' 발생 #15

Open
crash1522 opened this issue Feb 9, 2024 · 1 comment
Open

pytest 실행시 'shape is not defined' 발생 #15

crash1522 opened this issue Feb 9, 2024 · 1 comment

Comments

@crash1522
Copy link
Collaborator

이전에 uvicorn으로 실행했을 때 발생했던 문제가 pytest로 실행했을 때도 발생했습니다.
아마 높은 확률로 비동기 처리를 하는 과정에서 문제가 생긴 것 같습니다.
예상되는 시나리오는

클라이언트가 라우터를 호출 -> 라우터 내에서 다른 비동기 처리 -> 이 과정에서 비동기 처리하는데 await하지 않음 -> 모델에 입력값에 null값 입력

이런 경우를 염두에 두고 있습니다.
일단은 mypage.py는 테스트 코드에 포함하지 않고 작업을 진행하겠습니다.

@crash1522
Copy link
Collaborator Author

여러 차례 디버깅을 해 본 결과 비동기 처리와는 관계 없는 문제로 밝혀졌습니다.
문제를 해결하지 못해서 모델 서빙 api를 따로 분리하여 컴포즈 파일로 연결하는 방법을 생각해보겠습니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant