improve and cleanup node-ready handling

This commit is contained in:
holger krekel
2010-01-18 02:07:22 +01:00
parent c1ac3c08dc
commit c65cd3f597
5 changed files with 9 additions and 30 deletions

View File

@@ -8,6 +8,7 @@ import execnet
from execnet.gateway_base import RemoteError
class GatewayManager:
EXIT_TIMEOUT = 10
RemoteError = RemoteError
def __init__(self, specs, hook, defaultchdir="pyexecnetcache"):
self.specs = []
@@ -61,7 +62,7 @@ class GatewayManager:
)
def exit(self):
self.group.terminate()
self.group.terminate(self.EXIT_TIMEOUT)
class HostRSync(execnet.RSync):
""" RSyncer that filters out common files