diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-11-15 12:47:02 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-11-15 12:47:02 +0200 |
commit | fe834f887ed81f09bfbc557f553263310cf94074 (patch) | |
tree | fe45970d56c75ad4d31c29c31f47a45083709e85 | |
parent | 1aeeb1bcfafd6f7855966fce592b2a420a54e8a2 (diff) |
Add note on controller priority
-rw-r--r-- | bbot/agent/agent.cxx | 7 |
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; |