Python Powered Redis Queued Matlab/Octave Engine
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Markus Bergholz b8cdf418b2 README update 4 years ago
LICENSE Initial commit 4 years ago
PRQME.py increase counter for worker at any time 4 years ago
PRQOE.py add octave version 4 years ago
README.md README update 4 years ago

README.md

PRQME

Python Powered Redis Queued Matlab/Octave Engine

You can spawn several Matlab/Octave workers. But be aware, according to Mathworks, the Matlab python engine is not thread safe, while GNU Octave threading is thread safe.

requirements

  • Matlab >= R2014b (Install matlabroot/extern/engines/python)
  • GNU Octave >= 3.8
  • Python 3
  • Redis >= 2.6

redis

create a simple queue

    127.0.0.1:6379> rpush my_queue ja9 ja8 ja7 ja6 ja5 ja4 ja3 ja2 ja1 ja0
    (integer) 10

python

run the matlab workers

    22:25 $ python Worker.py 
    spawning matlab worker 1/2
    spawning matlab worker 2/2
    worker 0 is free now
    worker 0 busy with b'ja9'
    no free worker available ...
    worker 1 is free now
    worker 1 busy with b'ja8'
    no free worker available ...
    no free worker available ...
    no free worker available ...
    no free worker available ...
    no free worker available ...
    no free worker available ...
    no free worker available ...
    no free worker available ...
    no free worker available ...
    no free worker available ...
    no free worker available ...
    no free worker available ...
    no free worker available ...
    no free worker available ...
    no free worker available ...
    no free worker available ...
    no free worker available ...
    no free worker available ...
    no free worker available ...
    no free worker available ...
    no free worker available ...
    worker 0 is free now
    worker 0 busy with b'ja7'
    no free worker available ...
    worker 1 is free now
    worker 1 busy with b'ja6'
    no free worker available ...
    no free worker available ...
    no free worker available ...
    no free worker available ...