mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
ZEPPELIN-2943 Streaming output will be closed in 30 seconds for IPythonInterpreter
This commit is contained in:
parent
5d7151097e
commit
0923b3cf79
1 changed files with 3 additions and 2 deletions
|
|
@ -35,7 +35,7 @@ else:
|
|||
import queue as queue
|
||||
|
||||
|
||||
TIMEOUT = 30
|
||||
TIMEOUT = 60*60*24*365*100 # 100 years
|
||||
|
||||
class IPython(ipython_pb2_grpc.IPythonServicer):
|
||||
|
||||
|
|
@ -50,7 +50,8 @@ class IPython(ipython_pb2_grpc.IPythonServicer):
|
|||
self._status = ipython_pb2.RUNNING
|
||||
|
||||
def execute(self, request, context):
|
||||
print("execute code: " + request.code)
|
||||
print("execute code:\n")
|
||||
print(request.code)
|
||||
sys.stdout.flush()
|
||||
stdout_queue = queue.Queue(maxsize = 10)
|
||||
stderr_queue = queue.Queue(maxsize = 10)
|
||||
|
|
|
|||
Loading…
Reference in a new issue