diverse fixes und mysql

This commit is contained in:
uwsgi
2017-02-15 10:32:45 +01:00
parent 49ac42b9a5
commit bdfa16728d
11 changed files with 75 additions and 20 deletions

View File

@@ -7,7 +7,7 @@ from gevent import spawn
from itertools import repeat
from models import CrawlUrl
from src import clogger
from src.database import db_session2
from src.database import db_session2,db_session
def start_workers(f,c,p):
for _ in range(f):
clogger.debug("spawn fetchworker")
@@ -24,6 +24,8 @@ def work_fetch():
def work_process():
while True:
run_process()
# db_session.close()
def work_compile():
while True:
run_compile()