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

Avoid TypeError when running at PeriodicItemCountMonitor #436

Merged
merged 5 commits into from
Mar 8, 2024

Conversation

VMRuiz
Copy link
Collaborator

@VMRuiz VMRuiz commented Mar 8, 2024

Fixes #427

However, the monitor will still won't pass until item_scraped_count is defined. I'm not sure if we should include the possibility of wanting this monitor to pass when tresshold is 0 and item_scraped_count is None.

… time with undefined item_scraped_count stat
@VMRuiz VMRuiz requested a review from wRAR March 8, 2024 09:24
Copy link

codecov bot commented Mar 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.43%. Comparing base (8493465) to head (98075ce).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #436   +/-   ##
=======================================
  Coverage   79.43%   79.43%           
=======================================
  Files          76       76           
  Lines        3229     3229           
  Branches      536      536           
=======================================
  Hits         2565     2565           
  Misses        593      593           
  Partials       71       71           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@VMRuiz VMRuiz requested review from curita and fcanobrash March 8, 2024 09:46
@VMRuiz VMRuiz merged commit 049cb00 into master Mar 8, 2024
7 checks passed
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.

Periodic item count monitor crashes if it runs before item_scraped_count exists in stats
2 participants