Re: [pylons-devel] Scripting requests - Pyramid + Celery

2015-11-18 Thread Gavin Carothers
Ours looks like this: class WinslowTask(Task): abstract = True _winslow = None @property def winslow(self): if self._winslow is None: from winslow.lexelasticsearch import LexElasticSearch es_conf = bias_app.conf['ELASTICSEARCH'] es = Lex

[pylons-devel] Scripting requests - Pyramid + Celery

2015-11-18 Thread Robin Harms Oredsson
Hi all, I've tried to read up on proper usage of celery within Pyramid. So far most suggestions seem to be to load the whole stack via pyramid.paster.bootstrap for each task. Quite cumbersome. The right way to do this as far as I understand would be to create a request for each task and then close