Commit 2785af8
committed
Fix: scans stuck in running when catalog is not resolveable
When a scan has an unresolveable catalog (e.g. wrong credentials) then
the scan was stuck in running because the tx.commit only happened if
there were successful images.
The fix is to commit outside the successful branch instead of in it.1 parent 08e1d09 commit 2785af8
File tree
2 files changed
+1
-2
lines changed- rust
- crates/greenbone-scanner-framework/src/models
- src/openvasd/container_image_scanner/scheduling/db
2 files changed
+1
-2
lines changedLines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
315 | | - | |
316 | 315 | | |
| 316 | + | |
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
| |||
0 commit comments