{"action":"created","issue":{"url":"https://api.github.com/repos/wuchong/scrapy-dynamic-configurable/issues/2","labels_url":"https://api.github.com/repos/wuchong/scrapy-dynamic-configurable/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/wuchong/scrapy-dynamic-configurable/issues/2/comments","events_url":"https://api.github.com/repos/wuchong/scrapy-dynamic-configurable/issues/2/events","html_url":"https://github.com/wuchong/scrapy-dynamic-configurable/issues/2","id":105137785,"number":2,"title":"ReactorNotRestartable","user":{"login":"zanpen2000","id":3360804,"avatar_url":"https://avatars.githubusercontent.com/u/3360804?v=3","gravatar_id":"","url":"https://api.github.com/users/zanpen2000","html_url":"https://github.com/zanpen2000","followers_url":"https://api.github.com/users/zanpen2000/followers","following_url":"https://api.github.com/users/zanpen2000/following{/other_user}","gists_url":"https://api.github.com/users/zanpen2000/gists{/gist_id}","starred_url":"https://api.github.com/users/zanpen2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zanpen2000/subscriptions","organizations_url":"https://api.github.com/users/zanpen2000/orgs","repos_url":"https://api.github.com/users/zanpen2000/repos","events_url":"https://api.github.com/users/zanpen2000/events{/privacy}","received_events_url":"https://api.github.com/users/zanpen2000/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-07T03:17:47Z","updated_at":"2015-09-07T07:28:05Z","closed_at":null,"body":"嘿，顺序执行多个采集任务的时候，出现了 ReactorNotRestartable 的错误提示"},"comment":{"url":"https://api.github.com/repos/wuchong/scrapy-dynamic-configurable/issues/comments/138214797","html_url":"https://github.com/wuchong/scrapy-dynamic-configurable/issues/2#issuecomment-138214797","issue_url":"https://api.github.com/repos/wuchong/scrapy-dynamic-configurable/issues/2","id":138214797,"user":{"login":"zanpen2000","id":3360804,"avatar_url":"https://avatars.githubusercontent.com/u/3360804?v=3","gravatar_id":"","url":"https://api.github.com/users/zanpen2000","html_url":"https://github.com/zanpen2000","followers_url":"https://api.github.com/users/zanpen2000/followers","following_url":"https://api.github.com/users/zanpen2000/following{/other_user}","gists_url":"https://api.github.com/users/zanpen2000/gists{/gist_id}","starred_url":"https://api.github.com/users/zanpen2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zanpen2000/subscriptions","organizations_url":"https://api.github.com/users/zanpen2000/orgs","repos_url":"https://api.github.com/users/zanpen2000/repos","events_url":"https://api.github.com/users/zanpen2000/events{/privacy}","received_events_url":"https://api.github.com/users/zanpen2000/received_events","type":"User","site_admin":false},"created_at":"2015-09-07T07:28:05Z","updated_at":"2015-09-07T07:28:05Z","body":"def start_crawl(rule, task_id):\r\n    rule = dict2obj(rule)\r\n    runner = CrawlerRunner(settings=settings)\r\n\r\n    for r in rule.rules:\r\n        r = dict2obj(r)\r\n        runner.crawl(get_spider(rule.name)['class'], user_rule=r, task_id=task_id)\r\n        # d.addBoth(lambda _: reactor.stop())\r\n\r\n    reactor.run()\r\n"}}