Celery with Python on Bluemix

Folks, My buddy Kyle and I are using the heroku python buildpack on Bluemix. So far everything has been running pretty well. Kyle is trying to get the celery distributed task queue working and he's having trouble.. It simply hangs/crashes. and we're having trouble debugging why. He created a simple sample app to help demonstrate the problem..

Here's what Kyle sent me

Hey John,

I'm trying to get the new version of the scale server running on BlueMix and I'm having issues getting Celery running with it. I'm probably going to just re-work the server for now so that it does everything more synchronously (yikes!) so I can get it working, but I thought I'd let you know in case you want to forward the issue to someone on the BlueMix team. I imagine they'd be interested to resolve this as many Python programmers will likely want to use Celery in their apps. I've attached a minimal nonworking example (check the celery.log file through the BlueMix dashboard to see that celery is either hanging or crashing on startup).

3 answers

When the app crashes, the first debugging to do is to run 'cf logs <appname> --recent' which will gather all available log output from Bluemix and from the app. Potentially that output will reveal why the hang/crash is happening.