Skip to main content
Version: 10.3.1

Disable OCR workers

In the WorkFusion platform, the OCR component is installed by default. If you do not plan to use OCR, you can disable it. This will increase the throughput for Control Tower, RPA, and AutoML workers.

To disable the OCR component, follow these steps:

  1. On the Master server, run the following command as WFUSER to disable the ocr2rest service:

    $ wfmanager stop ocr2rest
    $ cd INSTALL_DIR/supervisord/apps/
    $ mv ocr2-rest.ini ocr2-rest.ini.disable
    $ wfmanager update

    If you work in the high-availability environment, run the command above on each MASTER instance.

  2. On the Master server, run the following command as WFUSER to clean rabbitmq queues:

    $ source INSTALL_DIR/environment.sh
    $ rabbitmqctl list_queues --vhost bep | grep ocr | awk '{ print $1 }' | xargs -L1 rabbitmqctl delete_queue --vhost bep
  3. On each AGENT server, run the following command as WFUSER to kill unnecessary OCR processes:

    kill -9 $(ps aux | grep -v grep | grep ocr-worker | awk '{print $2}')