Is there some simple GUI API in python to handle multi-processing in python? A GUI with multi-frame and each frame displays information of one process such that I can easily check status of each processing. That's all my needs.
My story is both long and stupid. If you got enough patience, please continue:
I'm writing a python program to collect data from tens of websites in parallel, processing them and then store the data into mysql. The data are later used as data set for machine learning research, which should be continous in time demension.
Firstly, I use threading
modular to do this.
But partly due to my poor programming skills, the program collapses a lot.
Then I ask in stackoverflow and follow some advice to adopt a demon process by importing the subprocess
modular to restart the program when it collapses.
Unfortunatelly, it still collapses a lot and can't successfully recover each time. (Don't know why yet: the demon process runs but can't restart the target program)
I think the frequent collapsing of my program is partly due to exception of data fetched from different website and in the consequent storing data to mysql stage.
I got no idea to solve this and now I try to use one process for each task which both fetches data from one websit and then stores them to mysql, such that I may find it easier to catch such exeption and improve stability of my program. Modular multiprocessing
is my current choice.
That's my sad story. Thank for at least finishing reading it. Any suggestion is highly appreciated.