hi all,

I have a particular file-processing "cron" job that uses django. 
Something much like this:

while True:
        for image in Image.objects.filter(processing_state="pending"):
                #process image
        time.sleep(30)

Now I notice that while running this script the DB table myapp_image 
seems to be locked the whole time, thus preventing me to -for example- 
run any syncdb statements that have references to this table. (syncdb 
effectively just sits there, waiting)

Is there any way to tell django to close all it's DB connections? Or am 
I running into another type of problem?


thanks!


  - bram

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