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
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