Closed anubhavcodes closed 8 years ago
I think before this is merged, add instructions on how to do that stuff somewhere that is not in the commit message/comment here. Possibly in the readme (you could even then solve #72 , two birds with one stone). Also merge in master beforehand so the conflicts are solved
If we have problems with the threading, I'll give it a try to get celery working. Will take some time, as I'll be doing it after my office in the evening.
Have a better option now.
This is pretty complicated, and we MUST move to celery as Tyler mentioned. Some things that are to be noted is that you will see the logger messages printed two times, as now there are two instances of logger, ie the thread and the main process, I don't think the code is running two times.
To kill the server and restart, Ctrl-C will no longer work, as there are threads now. Do the following:
1) Find the process id of the task by running
ps -ef | grep run_server
2) Kill all the process usingkill -9 PID
where PID is the number you found in 1.Also auto_restart of flask will not work the way it should. Sorry about it. Manually restart with the process mentioned above.
Fixes #76