MCPcopy Index your code
hub / github.com/Boris-code/feapder / start

Function start

tests/task-spider/test_task_spider.py:34–47  ·  view source on GitHub ↗

用mysql做种子表

(args)

Source from the content-addressed store, hash-verified

32
33
34def 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
50def start2(args):

Callers

nothing calls this directly

Calls 3

TestTaskSpiderClass · 0.85
start_monitor_taskMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected