mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 18:00:35 +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
|
||||
def connect(self):
|
||||
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'],
|
||||
'remote_port': forwards['remote_callback_port']}
|
||||
with CallbackServer(**args) as callback_server:
|
||||
args = {'listen_port': forwards['local_callback_port'],
|
||||
'remote_port': forwards['remote_callback_port']}
|
||||
from callback import CallbackServer
|
||||
with CallbackServer(**args) as callback_server:
|
||||
with connect_pyro('localhost', forwards['local_server_port']) as connection:
|
||||
connection.set_callback_server(callback_server)
|
||||
yield connection
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue