sontek/pyramid_celery — pull request #2 by hynek (2012-02-25 15:55:23+00:00)
Title: Convert non-string options

Hi,

I went through celery's configuration docs and picked out options that need non-string types as values. For example `CELERYD_CONCURRENCY` needs an int or `ADMINS` needs a tuple of tuples.

I really hope you like the patch, because I need to set `CELERYD_CONCURENCY` in my application. :) The only downside is that I need to use `eval()` in order to support complex types like dicts or tuples. AFAIU, there's no way to completely configure celery without them.

The only possible alternative would be to allow celeryconfig.py to be used along with PasteDeploy.

I've added tests to retain your 100% coverage of course.

I didn't include celerybeat's options as as far as I understand, there's no support for celerybeat in pyramid_celery yet.

Cheers,
Hynek