Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

异步启动多个Spider,第一个Spider的Task状态始终为Running #19

Closed
wu-wenzhi opened this issue Aug 30, 2017 · 2 comments
Closed

Comments

@wu-wenzhi
Copy link

Spider启用:
foreach (DotnetSpider.Core.Spider s in SpiderList) { s.OnClosed += s_OnClosed; SpiderTaskList.Add(s.RunAsync()); }
在s_OnClosed中循环处理SpiderTaskList[i].Status中的状态,第一个Task始终为Running

@zlzforever
Copy link
Collaborator

可否发一个代码呢方便我重现问题?zlzforever@163.com. 我刚在DotnetSpider.Sample的Program的MyTest里测试了一下没有你说的问题。

@wu-wenzhi
Copy link
Author

已经把测试代码发到您邮件了,请查收

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants