forked from bossoq/Twitch-Channel-Points-Miner-v2
-
Notifications
You must be signed in to change notification settings - Fork 418
Speed up miner startup with parallel streamer init and smarter drop syncing #753
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
Open
Armi1014
wants to merge
14
commits into
rdavydov:master
Choose a base branch
from
Armi1014:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
ecbcf56
Improve startup robustness and performance: safer defaults, connectiv…
Armi1014 c3aebc3
Format codebase with Black (23 files reformatted)
Armi1014 6369f92
Add clarifying comments for parallel streamer init and lazy drop sync
Armi1014 3f526b7
Clarify miner types, document startup behavior, and guard parallel st…
Armi1014 9042f97
Scale streamer init timeout by streamer count to avoid hanging on lar…
Armi1014 e07f1d4
Refactor priority normalisation to assign existing lists directly
Armi1014 2509f97
Partial fix for #739.
mpforce1 0b30c5f
Revert "Format codebase with Black (23 files reformatted)"
Armi1014 8b94d51
Implement stream info caching to optimize get_stream_info method
Armi1014 a6fbfe4
Speed up shutdown with interruptible sleeps and shorter background th…
Armi1014 355ecd2
Add interruptible sleep helper and define stream info cache TTL
Armi1014 1bfea39
Add watch streak caching and JSON utility functions
Armi1014 07df398
Improve startup responsiveness and fix live detection on partial GQL …
Armi1014 88e3e40
Fix watch streak cache persistence, follower ordering, and quiet stre…
Armi1014 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -11,6 +11,8 @@ | |||||
| import re | ||||||
| import string | ||||||
| import time | ||||||
| from concurrent.futures import ThreadPoolExecutor, as_completed | ||||||
|
|
||||||
| import requests | ||||||
| import validators | ||||||
| # import json | ||||||
|
|
@@ -696,6 +698,40 @@ def load_channel_points_context(self, streamer): | |||||
| if streamer.settings.community_goals is True: | ||||||
| self.contribute_to_community_goals(streamer) | ||||||
|
|
||||||
|
||||||
| if streamer.settings.community_goals is True: | |
| self.contribute_to_community_goals(streamer) |
Armi1014 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
Armi1014 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
Armi1014 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
Armi1014 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.