Skip to content

Proactive contract net based on Redis assign task to a group of proactive workers (Java-Maven).

Notifications You must be signed in to change notification settings

rokkian/proactive_task_net

Repository files navigation

Proactive Task Net

This is an implementation of a Contract Net, where a variable set of proactive workers checks the shared dataspace (Redis) in search of task to do. There are multiple publishers of tasks that can be activated simultaneously and the the workers or publisherse of tasks can be effimeral. The time-decoupling between publishers and executioners of tasks is reached.

The system is process crash resistant if a maximum duration time of the tasks is known a-priori. Otherways those fault will loose ongoing tasks on the process.

The coordination is implemented through a mutual exclusion lock in Redis. If needed on a distrubuted implementation of Redis it has to be implemented adding the Redlock algorithm support (https://redis.io/topics/distlock).

The publishers of task are simple Python3 scripts who add tasks to a list of to-do task on the Redis DB.

The worker it's a Java-Maven simple agent. Further applications could implement a selection of the type of task execute if the agent is supposed to have only limited capabilities.

Requirements

It's required to have an accesible Redis instance either local or remote.

For the worker agents it's required Java and Maven.

For Python it's required at least version 3.8.

About

Proactive contract net based on Redis assign task to a group of proactive workers (Java-Maven).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published