From 5376f14149c9e250bb60c75002af82c7d13886e4 Mon Sep 17 00:00:00 2001 From: Philipp Moritz Date: Mon, 7 Mar 2016 18:39:13 -0800 Subject: [PATCH] commit shell --- test/shell.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/shell.py diff --git a/test/shell.py b/test/shell.py new file mode 100644 index 000000000..74c5791b5 --- /dev/null +++ b/test/shell.py @@ -0,0 +1,18 @@ +import orchpy.unison as unison +import orchpy.services as services +import orchpy.worker as worker + +from grpc.beta import implementations +import orchestra_pb2 +import types_pb2 + +def connect_to_scheduler(host, port): + channel = implementations.insecure_channel(host, port) + return orchestra_pb2.beta_create_Scheduler_stub(channel) + +if __name__ == '__main__': + scheduler_stub = connect_to_scheduler("127.0.0.1", 22221) + worker = worker.Worker() + worker.connect("127.0.0.1:22221", "127.0.0.1:10000", "127.0.0.1:22222") + import IPython + IPython.embed()