From 0dc424031b67adbbf3f3eb19cebf980a8ad6eb41 Mon Sep 17 00:00:00 2001 From: Josema Camacho Date: Thu, 16 Jul 2026 10:54:23 +0200 Subject: [PATCH] fix(api): apply long task limits to Attack Paths scans (#12009) --- api/changelog.d/attack-paths-scan-time-limit.fixed.md | 1 + api/src/backend/config/celery.py | 1 + api/src/backend/tasks/tests/test_tasks.py | 1 + 3 files changed, 3 insertions(+) create mode 100644 api/changelog.d/attack-paths-scan-time-limit.fixed.md diff --git a/api/changelog.d/attack-paths-scan-time-limit.fixed.md b/api/changelog.d/attack-paths-scan-time-limit.fixed.md new file mode 100644 index 0000000000..3726b52668 --- /dev/null +++ b/api/changelog.d/attack-paths-scan-time-limit.fixed.md @@ -0,0 +1 @@ +`attack-paths-scan-perform` Celery tasks now use the configurable long-task time limits instead of the six-hour defaults diff --git a/api/src/backend/config/celery.py b/api/src/backend/config/celery.py index 1a35a1a753..9ac4f1e4ef 100644 --- a/api/src/backend/config/celery.py +++ b/api/src/backend/config/celery.py @@ -74,6 +74,7 @@ celery_app.conf.task_annotations = { for name in ( "scan-perform", "scan-perform-scheduled", + "attack-paths-scan-perform", "provider-deletion", "tenant-deletion", ) diff --git a/api/src/backend/tasks/tests/test_tasks.py b/api/src/backend/tasks/tests/test_tasks.py index 6622ab10a5..476444cb00 100644 --- a/api/src/backend/tasks/tests/test_tasks.py +++ b/api/src/backend/tasks/tests/test_tasks.py @@ -3304,6 +3304,7 @@ class TestTaskTimeLimits: for name in ( "scan-perform", "scan-perform-scheduled", + "attack-paths-scan-perform", "provider-deletion", "tenant-deletion", ):