История страницы
Оглавление | ||
---|---|---|
|
Очередь роботов
При попытке запуска робота (любым способом) система может отправить этот запуск в очередь роботов.
панель |
---|
Очередь роботов - это список неудачных запусков роботов (их не удалось начать или прервались из-за ошибки), которые система автоматически попытается выполнить еще раз в порядке попадания запусков в этот список. |
Количество запусков не равно количеству роботов. Можно запустить несколько раз одного и того же робота - при этом это будут разные запуски.
В разделе доступны причины, из-за которых запуск робота был отправлен в очередь роботов.
Интерфейс раздела Очереди роботов доступен в разделе Оркестратор:
Описание таблицы Очереди роботов
Таблица содержит список роботов, которые не запущены в данный момент.
В таблице отображаются:
- Название и версия робота, а также необходимость графической сессии для работы
- Время, когда незапущенный робот был добавлен в очередь роботов
- Способ запуска робота
- Инициатор запуска
- Машина, на учетной записи которой запущен робот
- Учетная запись, на которой запущен робот
- Количество попыток запуска робота
Описание столбцов и кнопок таблицы
Robot queue
When you attempt to launch a robot (by any method), the system can send that launch to the robot queue.
панель |
---|
Robot queue is a list of failed robot launches (failed to start or aborted due to an error) that the system will automatically try again in the order the launches appear in this list. |
The number of launches is not equal to the number of robots. You can launch the same robot more than once and it will be different launches.
The reasons why a robot launch was sent to the robot queue are available in the section.
The interface of the Robot queue section is available in the Orchestrator section:
Robot queue table description
The table contains a list of robots that are not currently running.
The table displays:
- Name and version of the robot, and the need for a graphics session for operation
- Time when an unlaunched robot was added to the robot queue
- Method of launching the robot
- Initiator of the launch
- Host on whose account the robot is launched
- Account on which the robot is started
- Number of attempts to launch the robot
Table columns and buttons description
Column/button name | Description | |||||
---|---|---|---|---|---|---|
"Robot" column |
| |||||
"Added to queue" column | The date on which the robot was added to the queue | |||||
"Launch condition" column | Specifies the robot's launch option
| |||||
Название столбца/кнопки | Описание | |||||
Столбец "Робот" |
| |||||
Столбец "Добавлен в очередь" | Дата, когда робот был добавлен в очередь | |||||
Столбец "Способ запуска" | Указывается вариант запуска робота
| Столбец "Инициатор" |
Информация |
---|
Возможные значения:
|
Попытки
Кнопка
Параметры, влияющие на работу очереди роботов
...
Текущее количество совершенных попыток перезапуска = r
Время ожидания между перезапусками = t
...
Лимит выполняющихся запусков
...
Устанавливается в конфигурационном файле системы при ее развертывании. Параметр общий для всех машин, т.е. нельзя настроить разные лимиты для разных машин. При этом процессы (проекты роботов), запущенные через ROBIN Studio, не учитываются в общем количестве текущих запусков
...
Максимальное количество перезапусков. Некоторые запуски могут попадать в очередь бесконечно, например, если проблема в самом роботе, и требуется его изменение через ROBIN Studio. Чтобы очередь не была забита такими запусками, после попадания запуска в очередь система попытается его повторно выполнить только установленное количество раз
Когда количество выполненных попыток станет равным числу, установленному в конфигурационном файле, система удаляет этот запуск из очереди и далее его не контролирует
...
Тайм-аут. Это время, которое должно пройти с момента попадания запуска в очередь (в первый раз или при неудачной попытке перезапуска), прежде чем система попытается еще раз выполнить этот запуск
Подсказка |
---|
Пример работы этого параметра:
|
...
Количество ресурсов для первого запуска = N
Количество экземпляров робота = D
Количество ресурсов для дополнительных запусков = M
Количество экземпляров робота, которые должны выполняться в данный момент с учетом текущего количества ресурсов очереди = L
Текущее количество выполняющихся экземпляров робота = n
...
Добавление запуска в очередь
События, при которых система пытается еще раз повторить запуски, попавшие в очередь:
- Какой-либо выполняющийся робот завершил свою работу, т.е. на одной из учетных записей машин освободилось место для еще одного запуска
- В карточке учетной записи машины добавили или обновили учетные данные
- Одна из учетных записей машин стала активной, и при этом количество выполняющихся на ней запусков не больше установленного лимита запусков
Причины, из-за которых запуск робота будет отправлен в очередь
Запуск робота будет отправлен в очередь, если его не удалось запустить, в зависимости от условий запуска:
...
- Система проверяет, есть ли в очереди роботов другой запуск, который также должен произойти на выбранной УЗ:
Если запуск есть, система добавляет в очередь текущий запуск (Раздел "Robots"), закрывает окно "Запустить робота" и выводит предупреждение:
Предупреждение Запуск робота добавлен в очередь роботов. Учетная запись занята
- Система проверяет, работает ли сейчас на выбранной УЗ Ui-робот (этот же или любой другой). Если работает, система добавляет в очередь текущий запуск (Раздел "Robots"), закрывает окно "Запустить робота" и выводит предупреждение:
Предупреждение Запуск робота добавлен в очередь роботов. На учетной записи уже работает UI-робот, запустить более одного UI-робота нельзя - Система сравнивает кол-во текущих запусков роботов на выбранной УЗ с допустимым лимитом. При этом в общем количествово текущих запусков не учитываются запуски дочерних роботов и запуски из Студию. Если количествово текущих запусков равно лимиту, система добавляет в очередь текущий запуск (Раздел "Robots"), закрывает окно "Запуск робота" и выводит предупреждение:
Предупреждение Запуск робота добавлен в очередь роботов. Учетная запись занята - Если значения параметра работы с RDP в конфигурационном файле системы установлено на "False" (Роботу требуется наличие графической сессии). система добавляет в очередь роботов текущий запуск (Раздел "Robots"), закрывает окно "Запуск робота" и выводит предупреждение:
- если система запускает RDP, т.к. УЗ неактивна:
Предупреждение Запуск робота добавлен в очередь роботов. Учетная запись неактивна, активация RDP-сессии запрещена - если система запускает RDP, т.к. на УЗ неактивна графическая сессия:
Предупреждение Запуск робота добавлен в очередь роботов. На учетной записи неактивна графическая сессия, активация RDP-сессии запрещена
- если система запускает RDP, т.к. УЗ неактивна:
- Если не указаны учетные данные из карточки УЗ (Роботу требуется наличие графической сессии). Система добавляет в очередь роботов текущий запуск (Раздел "Robots") и выводит предупреждение:
- если система запускает RDP, т.к. УЗ неактивна:
Предупреждение Запуск робота добавлен в очередь роботов. Учетная запись неактивна, и в ее карточке не указаны логин и пароль для запуска RDP-сессии - если система запускает RDP, т.к. на УЗ неактивна графическая сессия:
Предупреждение Запуск робота добавлен в очередь роботов. На учетной записи неактивна графическая сессия, и в ее карточке не указаны логин и пароль для запуска RDP-сессии
- если система запускает RDP, т.к. УЗ неактивна:
...
- Система проверяет наличие учетных записей в группе машин, указанны в условии запуска по условиям. Если нет ни одиной подходящей УЗ, то система добавляет в очередь текущий запуск (Раздел "Robots")
- Если производится запуск робота с, но на выбранной учетной записи же работает робот с такой же отметкой, то рассматриваемый запуск будет отправлен в очередь
...
Запуск робота для процесса ROBIN Process
...
- Система проверяет, есть ли в очереди роботов другой запуск, для которого также необходимо подобрать учетную запись автоматически. Если запуск есть, система добавляет в очередь текущий запуск (Раздел "Robots") и завершает сценарий на данном шаге.
- Если параметр работы с RDP (Роботу требуется наличие графической сессии), указанного в конфигурационном файле системы = False, система добавляет в очередь текущий запуск.
Система выбирает любую неактивную УЗ, у которой в карточке указаны учетные данные, а кол-во текущих запусков меньше лимита (указан в конфигурационном файле системы); при этом не учитывает те УЗ, на которых уже была предпринята попытка выполнить текущий запуск:
- Если нет, система добавляет в очередь текущий запуск. Сценарий завершается на данном шаге.
...
Возникла ошибка уже при выполнении запущенного робота
...
Для выбранной учетной записи необходимо поднимать RDP-сессию, но системе не удалось ее поднять. Соответственно, начать запуск не получится, и он отправляется в очередь
| |||
"Initiator" column | A variant of the initiator record. Depends on how the robot is launched
| ||
"Host" column | The name and IP address of the host on whose account the robot is running | ||
"Account" column | The account of the host on which the robot is running | ||
"Attempts" column | Number of attempts to launch the robot | ||
Button | By clicking on it, the records in the table are updated |
Parameters affecting the operation of the robot queue
Parameters affecting the operation of the robot queue | Parameter names and designations | Where installed | |
---|---|---|---|
Robot queue parameters | Current number of restart attempts made = r Waiting time between restarts = t | Both parameters are configured in the system configuration file | |
Limit of launches in progress | Set in the system configuration file when the system is deployed. The parameter is common for all hosts, i.e. you cannot set different limits for different hosts. In this case, workflows (robot projects) launched via ROBIN Studio are not counted in the total number of current launches | ||
Maximum number of restarts. Some launches may be queued indefinitely, for example if there is a problem with the robot itself and it needs to be modified via ROBIN Studio. To prevent the queue from becoming clogged with such launches, once a launch has been queued, the system will attempt to re-run it only a set number of times When the number of attempts is equal to the number set in the configuration file, the system deletes the launch from the queue and does not monitor it any further | Set in the configuration file | ||
Timeout. This is the amount of time that must elapse from the time a launch is queued (the first time or on a failed restart attempt) before the system will attempt to execute that launch again
| Set in the configuration file | ||
Parameters of launch conditions based on resource queue | Number of resources for the first launch = N Number of robot instances = D Number of resources for additional launches = M Number of robot instances to be executed at this moment given the current number of queue resources = L Current number of robot instances to be executed = n | All parameters except L and n are configured in the launch condition card |
Adding a launch to the queue
Events in which the system attempts to retry launches that have been queued:
- A robot in progress has finished its work, i.e. one of the host accounts has made room for another launch
- Credentials have been added or updated to the host account card
- One of the host accounts has become active, and the number of launches running on it is not greater than the set launch limit
Reasons why a robot launch will be sent to the queue
The robot launch will be sent to the queue if it fails to launch, depending on the launch conditions:
Launch type | Reason for sending robot to queue | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Manual launch of the robot "Robots" page |
| ||||||||||||||
Launch conditions based on resource queue |
| ||||||||||||||
Robot launch for the ROBIN Process workflow |
| ||||||||||||||
Robot terminated due to an error "Running robots" section | An error occurred while executing a running robot | ||||||||||||||
The runtime system installed on the selected host account failed to start launching (at this point, all of the above checks have already passed successfully and are not preventing launch) | An RDP session should be raised for the selected account, but the system failed to raise it. Accordingly, the launch cannot be started and is sent to the queue |
If the robot completed successfully or was stopped by the user, the system does not add such a launch to the queueЕсли робот завершил свою работу успешно или был остановлен пользователем, система не добавляет такой запуск в очередь.