Wouldn't this be enough? (below) I assume this should have make the main
process loop in the while. Since, I get the log result that process gets
inside while loop. But there is no sign how it ends.
*def doAnnounceAlive():*
""" Main loop. Will announce listeners into Redis. once a minute """
global THREAD_OBJS, MAX_LISTENER_COUNT, CHECK_LISTENER_FREQ
*while True:*
thread-create-and-check-loop
2014-11-21 7:59 GMT+02:00 Roberto De Ioris <[email protected]>:
>
> > Hi,
> >
> > I have implemented my thread as shown in uwsgi docs, somaro.py
> > ( http://uwsgi-docs.readthedocs.org/en/latest/Mules.html )
> >
> > The problem is mule workers constantly die in a few seconds. It seems
> > like; despite all try/catch, mule worker quits all of a sudden and
> > quietly. And my application tries to recreate listeners instead of the
> > dead ones (which I setup that way).
> >
> > And it’s like they are fighting. Because the listener threads seem to die
> > in a few seconds.
> >
> > Why do you think uwsgi kills the threads or threads die anyhow? I just
> > couldn’t find the reason at all.
> >
> > I need 3 threads of background job must wait for a command. But they die.
> >
> >
>
>
> Maybe i am missing something, but i do not see where you joined threads,
> so the process will continue to death as you did not instructed it to wait
> for threads.
>
> --
> Roberto De Ioris
> http://unbit.it
> _______________________________________________
> uWSGI mailing list
> [email protected]
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
>
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi