What to do when Runner seems stuck when executing a new task?

What to do when Runner seems stuck when executing a new task?

In sporadic situations, the Runner may seem stuck after pulling a new task for execution.

In this situation, the execution is not started, and the Runner status remains as Executing task ... until the Runner is restarted.

Overall, the resources used by the previous execution, which have not been correctly finalized, can cause this type of problem. Thus, when the code attempts to reaccess these resources, a conflict occurs because the operating system considers these resources already "in use."

A classic example is the use of web drivers in web automation. Without proper finishing, the web driver may continue to run even after the process is completed, affecting the following executions.

A possible solution to this type of problem is to include treatments in the code to ensure that all resources allocated and used by the robot are finished correctly at the end of execution, even in cases where exceptions occur.

Following this good practice, every time the Runner performs this process, the environment will be "clean"; therefore, there will be no problems using specific resources.

Tip:
You can also always consult the log.txt file generated by the Runner to verify any exceptions during the environment preparation and process execution.

    • Related Articles

    • Keeping your remote session active when using Runner

      In some cases where a VM is used to run the automation, keeping the remote session active is necessary to avoid problems with the graphical interface, such as the OSError: screen grab failed error. This error is usually thrown when trying to perform ...
    • How to fix Python environment preparation failed error

      A very common error when executing automations through the Runner is Python Environment Preparation Failed. As the name suggests, the Runner fails when trying to prepare the Python environment for the robot's execution. This error occurs in different ...
    • Are Datapool Items Automatically Counted in Insights ?

      Question When using BotCity Maestro, are the items from the datapool automatically reflected in the Insights dashboard? Answer No. Datapool items are not automatically counted in the Insights tool. To have this information properly displayed in ...
    • Problems with blocking environments

      If you are trying to use BotCity's tools in a corporate environment, you may encounter some issues related to environment locks. Here are some of the most common issues when using the BotCity Studio SDK in blocking environments: Installation through ...
    • What Features Are Available on a Free BotCity Maestro Account ?

      Description A common question from new users of BotCity Maestro is what features are included in a free (community) account. These questions often come through the support chat on the sign-up screen, and usually include: How many bots can I create? ...