aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bbot/agent/agent.cxx7
1 files changed, 6 insertions, 1 deletions
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;