|
@@ -19,7 +19,8 @@ async def run(task_id, mode, platform):
|
|
"""
|
|
"""
|
|
# 创建并等待一个子进程
|
|
# 创建并等待一个子进程
|
|
await asyncio.create_subprocess_shell(
|
|
await asyncio.create_subprocess_shell(
|
|
- "python3 scheduler/run_spider_online.py --task_id {} --mode {} --platform {}".format(task_id, mode, platform))
|
|
|
|
|
|
+ "python3 scheduler/run_spider_online.py --task_id {} --mode {} --platform {}".format(task_id, mode, platform)
|
|
|
|
+ )
|
|
|
|
|
|
|
|
|
|
async def main():
|
|
async def main():
|