Commit 75d91d5
Improve: Add comprehensive error handling and logging
Enhanced the fix based on code review feedback:
1. Added error handling at ProcessPageAsync level to ensure one failing item
doesn't block processing of other items in the batch
2. Added explicit exception logging in ProcessItemAsync to surface errors
during workflow resumption
3. Changed deletion to use CancellationToken.None to ensure cleanup happens
even during application shutdown
4. Added detailed comments explaining error handling strategy
These improvements ensure the system is robust and provides visibility into
any issues while still guaranteeing queue items are cleaned up properly.
Co-authored-by: sfmskywalker <938393+sfmskywalker@users.noreply.github.com>1 parent 2acd408 commit 75d91d5
1 file changed
Lines changed: 18 additions & 3 deletions
Lines changed: 18 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
35 | 45 | | |
36 | 46 | | |
37 | 47 | | |
| |||
54 | 64 | | |
55 | 65 | | |
56 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
57 | 71 | | |
58 | 72 | | |
59 | 73 | | |
60 | 74 | | |
61 | 75 | | |
| 76 | + | |
62 | 77 | | |
63 | 78 | | |
64 | | - | |
| 79 | + | |
65 | 80 | | |
66 | 81 | | |
67 | 82 | | |
| |||
0 commit comments