Re: While fixing a 'could not locate a bind configured ..' error got a 'could not locate database' error

2014-01-23 Thread Michael
Hey I figured this out. The issue was that there was no bound engine available in the celery context. The solution was to add this chunk of code in my celery initialization code, celery.py: @worker_init.connect def bootstrap_pyramid(signal, sender): import pdb; pdb.set_trace() from pyr

Re: While fixing a 'could not locate a bind configured ..' error got a 'could not locate database' error

2014-01-22 Thread Michael Bayer
On Jan 22, 2014, at 12:07 AM, Michael wrote: > In my pyramid app, a celery task was giving me: "Task > lr.queue.tasks.fetch_bmark_content[b667d64c-5505-408c-bd12-f9a1863b2e7c] > raised unexpected: UnboundExecutionError('Could not locate a bind configured > on mapper Mapper|Bmark|bmarks, SQL e

While fixing a 'could not locate a bind configured ..' error got a 'could not locate database' error

2014-01-21 Thread Michael
In my pyramid app, a celery task was giving me: "Task lr.queue.tasks.fetch_bmark_content[b667d64c-5505-408c-bd12-f9a1863b2e7c] raised unexpected: UnboundExecutionError('Could not locate a bind configured on mapper Mapper|Bmark|bmarks, SQL expression or this Session',)" from reading around it ap