El 30/05/17 a les 10:42, Cédric Krier ha escrit:
On 2017-05-30 09:53, Sergi Almacellas Abellana wrote:
El 30/05/17 a les 09:32, Sergi Almacellas Abellana ha escrit:
Hi,

I have found some strange issue when using trytond-cron. The process
runs correctly, but after some random time (3-4 days) it starts sleeping
forever. After killing the process and restarting everything works well.
I just found one diference on the ps output. When the process is working
correcty it's in the S (sleeping) state, but when the process is
sleeping forever it gets on the Sl state. From the man page i see that
the "l" means that the process is multithread.

So it's possible that some cron thread did not end up correctly and this
causes the main process to not recover from sleep?

Any comments will be much appreciated.
The cron code is full of logging, have you anything?

No, we did not have any logging for the cron. I've setup the logging and added it to our task. Let's see.

I guess it is a cron task for one database that is running indefinitely.

Yes, it is. The cron task is executing every minute and the process scans a folder to import some files from it. If no files found, it does nothing.

Maybe a dead lock?

Still investigating, will provide more information when I have collected it.

Thanks for the input.

--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk

--
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/77203b9a-15bd-999c-bf25-09b8ed176169%40koolpi.com.

Reply via email to