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

Good first issue: Look into plugins/core.py creating a new thread each check instead of reusing it #235

Open
InvisibleSymbol opened this issue May 17, 2023 · 0 comments
Labels
good first issue Good for newcomers

Comments

@InvisibleSymbol
Copy link
Owner

there is no leak per se but it could prob just reuse it instead of creatin a new one each time.
logs with process name logged:

MainThread              :  INFO 2023-05-17 08:58:51,483 [core]core.py:141|gather_new_events(): Gathering messages from submodules
MainThread              : DEBUG 2023-05-17 08:58:51,483 [core]core.py:144|gather_new_events(): Running 1 submodules...
ThreadPoolExecutor-26_0 :  INFO 2023-05-17 08:58:51,483 [events]events.py:418|check_for_new_events(): Checking for new Events
ThreadPoolExecutor-26_0 : DEBUG 2023-05-17 08:58:51,529 [events]events.py:434|check_for_new_events(): Found 0 pending events
ThreadPoolExecutor-26_0 : DEBUG 2023-05-17 08:58:51,529 [events]events.py:501|check_for_new_events(): Finished Checking for new Events
MainThread              : DEBUG 2023-05-17 08:58:51,530 [core]core.py:177|gather_new_events(): 0 new Events gathered.
MainThread              : DEBUG 2023-05-17 08:58:51,530 [core]core.py:180|process_event_queue(): Processing events in event_queue collection...
MainThread              : DEBUG 2023-05-17 08:58:51,531 [core]core.py:185|process_event_queue(): No pending events in event_queue collection.
MainThread              :  INFO 2023-05-17 08:59:01,477 [core]core.py:141|gather_new_events(): Gathering messages from submodules
MainThread              : DEBUG 2023-05-17 08:59:01,478 [core]core.py:144|gather_new_events(): Running 1 submodules...
ThreadPoolExecutor-27_0 :  INFO 2023-05-17 08:59:01,479 [events]events.py:418|check_for_new_events(): Checking for new Events
ThreadPoolExecutor-27_0 : DEBUG 2023-05-17 08:59:01,531 [events]events.py:434|check_for_new_events(): Found 0 pending events
ThreadPoolExecutor-27_0 : DEBUG 2023-05-17 08:59:01,531 [events]events.py:501|check_for_new_events(): Finished Checking for new Events
MainThread              : DEBUG 2023-05-17 08:59:01,533 [core]core.py:177|gather_new_events(): 0 new Events gathered.
MainThread              : DEBUG 2023-05-17 08:59:01,533 [core]core.py:180|process_event_queue(): Processing events in event_queue collection...
MainThread              : DEBUG 2023-05-17 08:59:01,534 [core]core.py:185|process_event_queue(): No pending events in event_queue collection.
MainThread              :  INFO 2023-05-17 08:59:11,487 [core]core.py:141|gather_new_events(): Gathering messages from submodules
MainThread              : DEBUG 2023-05-17 08:59:11,487 [core]core.py:144|gather_new_events(): Running 1 submodules...
ThreadPoolExecutor-28_0 :  INFO 2023-05-17 08:59:11,488 [events]events.py:418|check_for_new_events(): Checking for new Events
ThreadPoolExecutor-28_0 : DEBUG 2023-05-17 08:59:11,537 [events]events.py:434|check_for_new_events(): Found 0 pending events
ThreadPoolExecutor-28_0 : DEBUG 2023-05-17 08:59:11,537 [events]events.py:501|check_for_new_events(): Finished Checking for new Events
MainThread              : DEBUG 2023-05-17 08:59:11,538 [core]core.py:177|gather_new_events(): 0 new Events gathered.
MainThread              : DEBUG 2023-05-17 08:59:11,538 [core]core.py:180|process_event_queue(): Processing events in event_queue collection...
MainThread              : DEBUG 2023-05-17 08:59:11,539 [core]core.py:185|process_event_queue(): No pending events in event_queue collection.
MainThread              :  INFO 2023-05-17 08:59:21,486 [core]core.py:141|gather_new_events(): Gathering messages from submodules
MainThread              : DEBUG 2023-05-17 08:59:21,487 [core]core.py:144|gather_new_events(): Running 1 submodules...
ThreadPoolExecutor-29_0 :  INFO 2023-05-17 08:59:21,487 [events]events.py:418|check_for_new_events(): Checking for new Events
ThreadPoolExecutor-29_0 : DEBUG 2023-05-17 08:59:21,536 [events]events.py:434|check_for_new_events(): Found 0 pending events
ThreadPoolExecutor-29_0 : DEBUG 2023-05-17 08:59:21,536 [events]events.py:501|check_for_new_events(): Finished Checking for new Events
MainThread              : DEBUG 2023-05-17 08:59:21,537 [core]core.py:177|gather_new_events(): 0 new Events gathered.
MainThread              : DEBUG 2023-05-17 08:59:21,538 [core]core.py:180|process_event_queue(): Processing events in event_queue collection...
MainThread              : DEBUG 2023-05-17 08:59:21,539 [core]core.py:185|process_event_queue(): No pending events in event_queue collection.
@InvisibleSymbol InvisibleSymbol added the good first issue Good for newcomers label May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant