用mysql做种子表
(args)
| 32 | |
| 33 | |
| 34 | def start(args): |
| 35 | """ |
| 36 | 用mysql做种子表 |
| 37 | """ |
| 38 | spider = TestTaskSpider( |
| 39 | task_table="spider_task", |
| 40 | task_keys=["id", "url"], |
| 41 | redis_key="test:task_spider", |
| 42 | keep_alive=True, |
| 43 | ) |
| 44 | if args == 1: |
| 45 | spider.start_monitor_task() |
| 46 | else: |
| 47 | spider.start() |
| 48 | |
| 49 | |
| 50 | def start2(args): |
nothing calls this directly
no test coverage detected