Commit 61e0578
committed
Handle error if cached file was deleted concurrently
Wrap cache file read in try-except to handle race condition where
another async task deletes the file between validation and lock
acquisition.
Automatically retry with force=True to trigger re-download.
Signed-off-by: Marcel Bochtler <marcel.bochtler@bosch.com>1 parent b3339a1 commit 61e0578
1 file changed
+18
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1738 | 1738 | | |
1739 | 1739 | | |
1740 | 1740 | | |
1741 | | - | |
1742 | | - | |
1743 | | - | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
| 1758 | + | |
1744 | 1759 | | |
1745 | 1760 | | |
1746 | 1761 | | |
| |||
0 commit comments