Skip to content

Commit 56821de

Browse files
authored
feat(tasks): Move compliance tasks to compliance queue (#8755)
1 parent 92190fa commit 56821de

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

api/CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ All notable changes to the **Prowler API** are documented in this file.
44

55
## [1.14.0] (Prowler UNRELEASED)
66

7-
### Added
7+
### Added
88
- Default JWT keys are generated and stored if they are missing from configuration [(#8655)](https://github.com/prowler-cloud/prowler/pull/8655)
99
- `compliance_name` for each compliance [(#7920)](https://github.com/prowler-cloud/prowler/pull/7920)
1010

@@ -16,6 +16,9 @@ All notable changes to the **Prowler API** are documented in this file.
1616

1717
## [1.13.1] (Prowler 5.12.2)
1818

19+
### Changed
20+
- Renamed compliance overview task queue to `compliance` [(#8755)](https://github.com/prowler-cloud/prowler/pull/8755)
21+
1922
### Security
2023
- Django updated to the latest 5.1 security release, 5.1.12, due to [problems](https://www.djangoproject.com/weblog/2025/sep/03/security-releases/) with potential SQL injection in FilteredRelation column aliases [(#8693)](https://github.com/prowler-cloud/prowler/pull/8693)
2124

api/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ start_prod_server() {
3232

3333
start_worker() {
3434
echo "Starting the worker..."
35-
poetry run python -m celery -A config.celery worker -l "${DJANGO_LOGGING_LEVEL:-info}" -Q celery,scans,scan-reports,deletion,backfill,overview,integrations -E --max-tasks-per-child 1
35+
poetry run python -m celery -A config.celery worker -l "${DJANGO_LOGGING_LEVEL:-info}" -Q celery,scans,scan-reports,deletion,backfill,overview,integrations,compliance -E --max-tasks-per-child 1
3636
}
3737

3838
start_worker_beat() {

api/src/backend/tasks/tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ def backfill_scan_resource_summaries_task(tenant_id: str, scan_id: str):
461461
return backfill_resource_scan_summaries(tenant_id=tenant_id, scan_id=scan_id)
462462

463463

464-
@shared_task(base=RLSTask, name="scan-compliance-overviews", queue="overview")
464+
@shared_task(base=RLSTask, name="scan-compliance-overviews", queue="compliance")
465465
def create_compliance_requirements_task(tenant_id: str, scan_id: str):
466466
"""
467467
Creates detailed compliance requirement records for a scan.

0 commit comments

Comments
 (0)