I can someone tell me how the database connection is handled for
threads.  Do I have to pass conneciton object to each threads?

All I am doing is this:

@threadpool(pool)
def process(i):
    print 'threadpool %i enter' % i

    p = Profile.objects.get(id=i)
    p.status ="sent"
    p.save()

    print 'threadpool %i exit' % i

Threads does save modified Profile object to the database, but after
saving it, threads just stays there.  Threads seem like they are
waiting for something. It doesn't do "print threadpool exit".


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to