99 Bottles flow runs only on one conductor/worker.

Asked by Lohith Royal Pinto

Hi Dear,

The example of `99 Bottles song` runs only on one conductor/worker.

https://docs.openstack.org/developer/taskflow/examples.html#conductor-running-99-bottles-of-beer-song-requests

- Started `python 99_bottles.py c` on two different shells.
- Then posted a work using `python 99_bottles.py p` command.
- Now, I could see only one process of started as consumer (`python 99_bottles.py c`) is running the tasks one by one.
- Second consumer runs only when new job is posted or first consumer is terminated.

Is this is expected behaviour or both consumer processes should run tasks in parallel ?

I also tried changing the workflow from linear to unordered with a sleep of 1 sec for the tasks. But still they run (unordered) one by one on the same consumer.

If you could tell me what I am doing wrong or if you could point me to an example of parallel workflow with zookeeper(or any broker) that would be a great help.

Thank you very much.

Question information

Language:
English Edit question
Status:
Expired
For:
taskflow Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.