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

Graceful shutdown #46

Closed

Conversation

RusticPotatoes
Copy link
Contributor

for missing data issue #44

@extreme4all extreme4all linked an issue Dec 1, 2023 that may be closed by this pull request
Comment on lines +158 to +168
# logger.info(f"Scraped data for player: {player.name}")
scrape_counter += 1
logger.debug(f"scrape_counter: {scrape_counter}") # Add this line
if scrape_counter == 100:
logger.debug("scrape_counter reached 100") # Add this line
end_time = time.time()
logger.info(
f"Scraped 100 players in {end_time - start_time} seconds"
)
start_time = time.time()
scrape_counter = 0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you really don't want this, every proxy will run this at the same time (#250 proxies), the desired speed should be about 500.000 scrapes an hour, in the past we've seen significant slowdoing logging this every line

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

Successfully merging this pull request may close these issues.

Graceful Shutdown of Scraper Script in Container Pod
2 participants