mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00
commit shell
This commit is contained in:
parent
2e23ec8985
commit
5376f14149
1 changed files with 18 additions and 0 deletions
18
test/shell.py
Normal file
18
test/shell.py
Normal file
|
@ -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()
|
Loading…
Add table
Reference in a new issue