示例#1
0
 def start_sendCoroutine(five_config,thread,fivemin_log):
     if not five_config.SEND_PROCESS_DISABLE:
         # 上传对象
         up_file = client(five_config,fivemin_log)
         # 上传协程进入队列
         work = gevent.spawn(up_file.handle_task())
         thread.append(work)
     else:
         bStopPro[1] = True
示例#2
0
 def start_upload():
     five_config = load_config()
     sendName = "%s-%s" %(time.strftime("%Y%m%d"),"send.log")
     fivemin_log = load_log(sendName)
     up_file = client(five_config,fivemin_log)
     work = gevent.spawn(up_file.handle_task())
     # swap程序 
     gevent.joinall([work]) 
     print "system start succeed"