From fe834f887ed81f09bfbc557f553263310cf94074 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 15 Nov 2018 12:47:02 +0200 Subject: Add note on controller priority --- bbot/agent/agent.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bbot') diff --git a/bbot/agent/agent.cxx b/bbot/agent/agent.cxx index a65045d..3e71ac2 100644 --- a/bbot/agent/agent.cxx +++ b/bbot/agent/agent.cxx @@ -1026,7 +1026,6 @@ try // Send task requests. // - // string url; task_response_manifest tr; @@ -1044,6 +1043,12 @@ try } else { + // Note that after completing each task we always start from the + // beginning of the list. This fact can be used to implement a poor + // man's priority system where we will continue serving the first listed + // controller for as long as it has tasks (and maybe in the future we + // will implement a proper priority system). + // for (const string& u: controllers) { task_response_manifest r; -- cgit v1.1