Commit d6bb0b4
authored
fix: Fix
### Description
- `BasicCrawler` should also consider failed requests when deciding if
`max_requests_per_crawl` was reached
### Issues
- Closes: #1765
### Testing
- Added unit test
### Checklist
- [ ] CI passed max_requests_per_crawl excluding failed requests (#1766)1 parent 7f7d45e commit d6bb0b4
File tree
2 files changed
+10
-4
lines changed- src/crawlee/crawlers/_basic
- tests/unit/crawlers/_basic
2 files changed
+10
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
566 | 566 | | |
567 | 567 | | |
568 | 568 | | |
569 | | - | |
| 569 | + | |
570 | 570 | | |
571 | 571 | | |
572 | 572 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
909 | 909 | | |
910 | 910 | | |
911 | 911 | | |
912 | | - | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
913 | 916 | | |
914 | 917 | | |
915 | 918 | | |
| |||
927 | 930 | | |
928 | 931 | | |
929 | 932 | | |
| 933 | + | |
| 934 | + | |
930 | 935 | | |
931 | 936 | | |
932 | 937 | | |
933 | 938 | | |
934 | 939 | | |
935 | | - | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
936 | 943 | | |
937 | | - | |
938 | 944 | | |
939 | 945 | | |
940 | 946 | | |
| |||
0 commit comments