Commit 2725686
authored
Regression fix: Update failed crawl database object after deleting files (#2993)
Fixes #2991
After deleting files (e.g. WACZs uploaded while a crawl was paused) for
canceled or otherwise failed crawls, ensure we also update the crawl
database object.
This fixes a regression introduced by crawl pausing, which resulted in
org storage numbers being incorrect when later deleting the canceled
crawl as a consequence of the crawl files not having been deleted from
the database at the same time as they were deleted from storage.
It also renames the basecrawls `delete_crawl_files` method to
`delete_failed_crawl_files` to make purpose clearer, as it is only used
by the operator and should only be used for failed crawls (when deleting
successful crawls, there are other workflow- and org-related updates
that are handled by other codepaths).1 parent 9a5a9d1 commit 2725686
2 files changed
+14
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
429 | | - | |
430 | | - | |
| 429 | + | |
| 430 | + | |
431 | 431 | | |
432 | 432 | | |
433 | | - | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
434 | 444 | | |
435 | 445 | | |
436 | 446 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1707 | 1707 | | |
1708 | 1708 | | |
1709 | 1709 | | |
1710 | | - | |
| 1710 | + | |
1711 | 1711 | | |
1712 | 1712 | | |
1713 | 1713 | | |
| |||
0 commit comments