Commit e86794a
fix(file-system): Reclaim orphaned in-progress requests on RQ recovery (#1825)
## Summary
- When a process crashed after `fetch_next_request` but before
`mark_request_as_handled` or `reclaim_request`, the request remained in
persisted `in_progress_requests` and was silently skipped on restart
- Clear `in_progress_requests` during `_discover_existing_requests` so
orphaned requests are retried
- Add unit test simulating the crash-recovery scenario
---
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent e1b4346 commit e86794a
File tree
2 files changed
+56
-1
lines changed- src/crawlee/storage_clients/_file_system
- tests/unit/storage_clients/_file_system
2 files changed
+56
-1
lines changedLines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
798 | 798 | | |
799 | 799 | | |
800 | 800 | | |
801 | | - | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
802 | 806 | | |
803 | 807 | | |
804 | 808 | | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
805 | 815 | | |
806 | 816 | | |
807 | 817 | | |
| |||
Lines changed: 45 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
178 | 223 | | |
179 | 224 | | |
180 | 225 | | |
| |||
0 commit comments