Intentional error reproduction #115
mindgitrwx
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
왼쪽 쉘은 session을 생성하면서, 파이썬 코드를 실행
오른쪽 쉘은 session을 kill하기 위함
running 상태가 된 후 session 을 kill 해보기.
오른쪽 쉘에서 terminating session 과 함께 Done으로 끝나고, 세션이 죽게 됨. 파이썬을 실행해야 하는 세션이 죽게되었으므로, 왼쪽 쉘은 파이썬 코드의 출력값인 exit도 출력하지 못하고 중단되어 버림. 강제로 종료해줘야 함.
running 상태가 되기 전에 session 을 kill 해보기
running 상태가 되기 전에 kill을 하면, backend.ai의 정책상 scheduled, prepairing 일때 세션을 죽이지 못하도록 403 Forbidden error를 발생시킴. (manager/src/ai/backend/manager/registry.py destroy_session함수 참고. 코드베이스 세미나에서도 봤던 내용)
즉 kill명령어는 아무런 의미가 없게 됨. 세션이 죽지 않고 켜져있으므로, 왼쪽 쉘은 Running 상태가 되고, 정상적으로 python프로그램이 3초 기다렸다가 exit을 출력하고 끝남.
Beta Was this translation helpful? Give feedback.
All reactions