On Sat, Nov 5, 2011 at 9:28 AM, jerry <jerryji1...@gmail.com> wrote: > Hi John, > > What's wrong with calling initialize_sql from Celery? I am calling > initialize_sql(engine, create_all=False) in my Celery tasks.py and > didn't notice any problem. > > celerytasks.py gets called when you first import celery within your app as well as when you launch celeryd. So by calling initialize_sql inside it you would be calling it multiple times if you also are calling it within main()
-- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.