I'm running a cron task to compute some prices. This task is run into it's own thread via ir.cron
For developing purposes, I need to kill/restart the server and since there is no proper way to kill the running thread, is there a variable somewhere to know if the server is down/stopped ?
I would use this variable to stop my computation and terminate the thread.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 1/23/14, 4:31 AM|
|Seen: 811 times|
|Last updated: 3/16/15, 8:10 AM|