Is there a function (or variable) that returns the worker variable as set by the config file or startup option? Ideally something that would be XML-RPC compatible.
After much searching in the code I didn't find anything that would return the required value. I created a simple one-liner in web_services.py to achieve the wanted behavior.
Here is what was done:
-Added 'get_workers' to the if in the dispatch method from the common class.
-Added the exp_get_workers defined as such:
return tools.config.get('workers', 1)
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: 8/24/14, 7:29 PM|
|Seen: 1004 times|
|Last updated: 3/16/15, 8:10 AM|