Hi!
I try to run spooler feature on django-uwsgi-nginx setup with virtualenv.
From uwsgi config:
 <spooler>/home/projects/sites/spooler</spooler>
From my runsite wsgi script:

import uwsgi
def calculation(env):
        print "Started spooler!!!!!!!!!!!"
        print env
        time.sleep(10)
        with open("/tmp/test", "w") as g:
                g.write("Test file")
        print "Finished spooler!!!!!!!"
uwsgi.spooler = calculation
application = WSGIHandler()

In view function of django:
uwsgi.spool({'Name':'Aaaaa', 'Hash':'some_hash'})


Now I see a lot of:
managing spool request uwsgi_spoolfile_on_mysite.org_20152_2_0_1308653948_105217 ...

And don't see it finished.. Also file "/tmp/test" is not created and nothing is printed. Seems like function calculation() doesn't work. May it be because virtualenv or I do something wrong?
Thanks.

_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to