> Hi,
>
> I am trying to debug my gevent loop app an am having issues with workers
> reading data from a dictionary that is updated every 60 from a redis hash.
>
>     from uwsgidecorators import *
>     @rbtimer(60,target='workers')
>     def load_redis(signum):
>         loadRedisDict()
>
> I do believe some workers just do not honor the lastest update and I have
> to restart the servers. I declared the hash as global.
>
> To start....how do I get a worker ID from a request so I can start saving
> output by worker?
>

uwsgi.worker_id()

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

Reply via email to