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

Shared threadpool #1489

Merged
merged 9 commits into from
Oct 10, 2021
Prev Previous commit
Next Next commit
change taskName to help avoid conflicts
  • Loading branch information
TheTechromancer committed Oct 7, 2021
commit 8094d6ad3bc6ca3085480553982faddcedff35fa
2 changes: 1 addition & 1 deletion spiderfoot/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ def threadWorker(self):
if self.__name__.startswith('sfp__stor_'):
self.handleEvent(sfEvent)
else:
self.sharedThreadPool.submit(self.handleEvent, sfEvent, taskName=self.__name__, maxThreads=self.maxThreads)
self.sharedThreadPool.submit(self.handleEvent, sfEvent, taskName=f"{self.__name__}_threadWorker", maxThreads=self.maxThreads)
self._running = False
except KeyboardInterrupt:
self.sf.debug(f"Interrupted module {self.__name__}.")
Expand Down