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", ):