[X2Go-Commits] x2gobroker.git - build-main (branch) updated: 0.0.0.6-10-g8e73d26
X2Go dev team
git-admin at x2go.org
Sun May 19 13:05:00 CEST 2013
The branch, build-main has been updated
via 8e73d26ce1bc5b1f8f1ce314877f90b37e6e8898 (commit)
from fe61669b7ab11de66223f62c52f380fc2b1e43bf (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
-----------------------------------------------------------------------
Summary of changes:
x2gobroker/brokers/base_broker.py | 5 +++++
1 file changed, 5 insertions(+)
The diff of changes is:
diff --git a/x2gobroker/brokers/base_broker.py b/x2gobroker/brokers/base_broker.py
index 15b79ac..54de6ab 100644
--- a/x2gobroker/brokers/base_broker.py
+++ b/x2gobroker/brokers/base_broker.py
@@ -841,7 +841,12 @@ class X2GoBroker(object):
busy_servers = x2gobroker.agent.find_busy_servers(username=username, query_mode=agent_query_mode, remote_agent=remote_agent)
except x2gobroker.X2GoBrokerAgentException:
logger_broker.warning('base_broker.X2GoBroker.select_session(): failed to query broker agent (quey-mode: {query_mode}, remote_agent: {remote_agent})'.format(query_mode=agent_query_mode, remote_agent=remote_agent)))
+
+ # mark this agent as bad
exclude_agents.append(remote_agent)
+ # also remove this agent from the list of available servers as the machine is probably down
+ server_list.remove(remote_agent['hostname'])
+
remote_agent = self.random_remote_agent(profile_id, exclude_agents=exclude_agents)
if busy_servers is not None:
hooks/post-receive
--
x2gobroker.git (HTTP(S) Session broker for X2Go)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "x2gobroker.git" (HTTP(S) Session broker for X2Go).
More information about the x2go-commits
mailing list