From a2ef74aaab96f63f3126d277217b071ad11bf0c6 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 11 May 2023 11:13:56 +0200 Subject: Add --instance-max agent option This is the ground work for the task priority/interrupt support. --- bbot/agent/agent.cli | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'bbot/agent/agent.cli') diff --git a/bbot/agent/agent.cli b/bbot/agent/agent.cli index aa7eb59..3d028fd 100644 --- a/bbot/agent/agent.cli +++ b/bbot/agent/agent.cli @@ -111,6 +111,20 @@ namespace bbot network ports, interfaces, etc." } + uint16_t --instance-max = 0 + { + "", + "Maximum number of instances that can perform tasks concurrently. If the + number of instances that have been started is greater than this number + (normally by just one), then when the maximum number of tasks is + already being performed, the extra instances operate in the \i{priority + monitor} mode: they only query controller URLs with priorities higher + than of the existing tasks and can only perform a task by interrupting + one of them. If the maximum number of instances is \cb{0} (default), + then it is assumed the number of instances started is the maximum + number, essentially disabling the priority monitor functionality." + } + size_t --cpu = 1 { "", -- cgit v1.1