Commit b87bdce
authored
Add log to analyze FuzzTargetJob entity deletion (#5051)
The cleanup cronjob is failing for Internal due to a `FuzzTargetJob`
query timeout, and the discussion in b/418807403 indicates that the
issue may be related to the deletion of `FuzzTargetJob` entities. This
PR adds a log to help confirm if deletion is the main problem, which
will be useful for developing an appropriate solution.
Key changes:
- Added a log to indicate how many `FuzzTargetJob` entities are deleted
per cronjob and how many remain in the database.
- Transformed the query iterator into a list to log the remaining
entities. This may increase memory usage, but it should not be a problem
as this kind has around 5,000 entities.
Related to b/418807403 and b/406250205.1 parent e0ab729 commit b87bdce
File tree
2 files changed
+14
-4
lines changed- src/clusterfuzz/_internal
- cron
- datastore
2 files changed
+14
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
212 | | - | |
213 | | - | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
214 | 215 | | |
215 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
216 | 222 | | |
217 | 223 | | |
218 | 224 | | |
219 | 225 | | |
220 | 226 | | |
221 | 227 | | |
222 | 228 | | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
223 | 233 | | |
224 | 234 | | |
225 | 235 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1775 | 1775 | | |
1776 | 1776 | | |
1777 | 1777 | | |
1778 | | - | |
| 1778 | + | |
1779 | 1779 | | |
1780 | 1780 | | |
1781 | 1781 | | |
| |||
0 commit comments