Hi
I'm using uWSGI 1.4.9 and Python 2.7.2, (64bit) for Mac, and I made a several
consecutive calls to a function that is using @mulefunc decorator to make some
asynchronous tasks. My setup is for 3 workers and 1 mule.
Well, it should have execute the function a bunch of times, but it is executing
just twice, not the amount of times the function was called.
First I thought that I ran out mule queue space (64Kb), but each call is only
using 114 bytes, so that is not the issue.
Code example:
# foo.py
from foobar.bar import bar_work
def async_barr(request):
for i in range(0, 10):
bar_work(i)
# bar.py
from uwsgidecorators import mulefunc
@mulefunc
def bar_work(wait):
print "** Calling mule! %d" % int(wait)
time.sleep(int(wait))
In the case it should call bar_work ten times, but it call just twice. Adding
more mules dint solve the problem.
Thank you.
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi