Commit f7ebf1c
committed
fix(api): skip scan tasks when provider was deleted
`perform_scan_task` and `perform_scheduled_scan_task` now short-circuit
with a warning and return None when the target provider no longer
exists, instead of letting `handle_provider_deletion` raise
`ProviderDeletedException`.
This prevents a queued message for a deleted provider from being
recorded as FAILURE in the task results, generating Sentry noise, and
(in deployments that shut down the worker after each scan task) burning
a fresh container on every redelivery.1 parent c1cfda5 commit f7ebf1c
1 file changed
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
277 | 288 | | |
278 | 289 | | |
279 | 290 | | |
| |||
310 | 321 | | |
311 | 322 | | |
312 | 323 | | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
313 | 333 | | |
314 | 334 | | |
315 | 335 | | |
| |||
0 commit comments