I'm trying to get a really simple python program to run as a background process on IBM Bluemix as a CloudFoundry app.
I've put it in a Github repo.
There's a one-line req file because I find it easier than a setup.py and the python buildpack needs it to run.
My complete use-case is that I have an API written with Django and I need an MQTT client that will run besides it to collect data from a broker (something with Watson IOT I think).
I've tried to run both in the same CF app with a 2-lines Procfile looking like this :
web: gunicorn -e DJANGO_SETTINGS_MODULE=conf.dev conf.wsgi --workers 2
worker: python time.py
WebsocketListener.Start: Error connecting to a doppler server
proxy: error connecting to 220.127.116.11:8081: dial tcp 18.104.22.168:8081: getsockopt: connection refused
Removing crash for app with id 3978a475-4dc6-495f-9662-a6fd562dc28a
Short answer to the question : a separate app with the
no-route argument set to
Ok, so I've apparently got it to work fully.
I'm not sure what I've done but the problem might have come from the fact that I was asking for a 32M instance and the minimum seems to be 64M so Bluemix/CF wasn't so happy with my demand and crashed.
I was using 128M in my older tries but I think I didn't put
no-route: true at the time