mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 15:36:27 +00:00
*first* start the callback server *then* the RPC daemon
This way we don't stop logging before the daemon is shut down.
This commit is contained in:
parent
686f9e4230
commit
9505110d4a
1 changed files with 5 additions and 5 deletions
|
@ -19,11 +19,11 @@ class RemoteBuildServer(BuildServer):
|
||||||
@contextmanager
|
@contextmanager
|
||||||
def connect(self):
|
def connect(self):
|
||||||
with self.spawn_server() as forwards:
|
with self.spawn_server() as forwards:
|
||||||
with connect_pyro('localhost', forwards['local_server_port']) as connection:
|
|
||||||
from callback import CallbackServer
|
|
||||||
args = {'listen_port': forwards['local_callback_port'],
|
args = {'listen_port': forwards['local_callback_port'],
|
||||||
'remote_port': forwards['remote_callback_port']}
|
'remote_port': forwards['remote_callback_port']}
|
||||||
|
from callback import CallbackServer
|
||||||
with CallbackServer(**args) as callback_server:
|
with CallbackServer(**args) as callback_server:
|
||||||
|
with connect_pyro('localhost', forwards['local_server_port']) as connection:
|
||||||
connection.set_callback_server(callback_server)
|
connection.set_callback_server(callback_server)
|
||||||
yield connection
|
yield connection
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue