Skip to main content

Camunda external task Robot Framework execution scheduler

Project description

Camunda external task Robot Framework execution scheduler

Technology preview.

carrot-executor is a decoupled Camunda external task executor concept for scheduling Robot Framework RPA tasks. The concept separates task locking from the execution scheduling.

In this concept, Carrot external task client, based on camunda-external-task-client-js fetches tasks from Camunda, schedules the execution, and keeps the task locked until the executor has completed. But the Carrot external task client only completes task when the scheduling fails for unexpected reason, by creating an incident. Any other interaction with Camunda is done by the scheduled Robot Framework bot.

This initial preview provides support for local parallel task execution, but the concept is designed to support also remote executors, like parameterized Nomad tasks, CI systems, Docker or even Robocloud API.

Requirements:

  • Docker with Docker Compose

  • Python >= 3.8

    $ python --version
    Python 3.8.8
    
  • NodeJS >= 12

    $ node --version
    v12.21.0
    

Trying it out

While carrot-executor has been released at PyPI, trying out the concept requires setting up Camunda BPM Platform and Robot Framework task suites.

The easies way for that is to clone or download the project repository and starting the preconfigured Camunda with Docker Compose:

$ git clone https://github.com/datakurre/carrot-executor
$ cd carrot-executor
$ docker-compose up

After everything is ready, there should be Camunda running at http://localhost:8080/camunda with username demo and password demo.

In the beginning, Camunda in this demo has both theirs and ours demo processes deployed. Let's get rid of Camunda's demo process:

  1. Open Camunda Tasklist:http://localhost:8080/camunda/app/tasklist/default/
  2. Choose Start process
  3. Choose Reset Camunda to clear state and
  4. Press Start

The started process could now be completed with the help of carrot-executor. For that we need to create a new Python env with our package:

$ python -m venv my-carrot-executor
$ source my-carrot-executor/bin/activate
$ pip install carrot-executor

The executor may now started with parameterizing it to complete tasks from the process we started:

$ CAMUNDA_API_PATH=http://localhost:8080/engine-rest ROBOT_SUITE=$(pwd)/robot/reset.robot CAMUNDA_TOPIC="Delete all tasklist filters,Delete all deployments" carrot-executor
polling
✓ subscribed to topic Delete all tasklist filters
✓ subscribed to topic Delete all deployments
polling
✓ polled 2 tasks
polling
✓ polled 0 tasks

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

carrot-executor-0.6.0.tar.gz (100.4 kB view hashes)

Uploaded Source

Built Distribution

carrot_executor-0.6.0-py3-none-any.whl (100.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page