1234567891011121314151617181920212223242526272829303132333435 |
- from multiprocessing import Process
- from app.api_data.get_order import *
- from app.api_data.get_cost_older import old_cost_hourly
- def hourly():
- p1 = Process(target=huasheng)
- p2 = Process(target=qiyue)
- p3 = Process(target=qiyueyousheng)
- p4 = Process(target=wending)
- p5 = Process(target=zhangdu)
- p6 = Process(target=zhangzhongyun)
- p7 = Process(target=yueweng)
- p8 = Process(target=youshuge)
- p9 = Process(target=yangguang)
- p10 = Process(target=old_cost_hourly)
- p1.start()
- p1.join()
- p2.start()
- p2.join()
- p3.start()
- p3.join()
- p4.start()
- p4.join()
- p5.start()
- p5.join()
- p6.start()
- p6.join()
- p7.start()
- p7.join()
- p8.start()
- p8.join()
- p9.start()
- p9.join()
- p10.start()
- p10.join()
|