From c629717b8e25ce5dccee45833de53655d30f598f Mon Sep 17 00:00:00 2001 From: guange Date: Wed, 11 Dec 2019 15:16:27 +0800 Subject: [PATCH] . --- app/services/jupyter_service.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/services/jupyter_service.rb b/app/services/jupyter_service.rb index 2c1e07c08..038e730fc 100644 --- a/app/services/jupyter_service.rb +++ b/app/services/jupyter_service.rb @@ -11,6 +11,10 @@ module JupyterService logger.info "test_juypter: uri->#{uri}, params->#{params}" res = uri_post uri, params + if res && res['code'].to_i != 0 + raise("实训云平台繁忙(繁忙等级:99)") + end + logger.info "test_juypter: #{res}" @shixun_jupyter_port = res['port']