I have a python script that listens and blocks while it waits for data on a redis list.
It runs fine in upstart using the following:
description "stage message consumer" author "Nilesh Ashra" start on started mountall stop on shutdown respawn exec sudo -u user REDIS_HOST=0.0.0.0 ENVIRONMENT=my_env /usr/bin/python /path/to/message_consumer.py
My question is, can I use upstart to spin up say 12 of these?
If not, can you recommend a way to do this?