fix(beat): Increase scheduled scans countdown to 5 seconds (#9558)

This commit is contained in:
Víctor Fernández Poyatos
2025-12-15 17:13:08 +01:00
committed by GitHub
parent d292c6e58a
commit 79ac7cf6d4
3 changed files with 9 additions and 2 deletions

View File

@@ -14,6 +14,13 @@ All notable changes to the **Prowler API** are documented in this file.
--- ---
## [1.16.2] (Prowler v5.15.2)
### Changed
- Increased execution delay for the first scheduled scan tasks to 5 seconds[(#9558)](https://github.com/prowler-cloud/prowler/pull/9558)
---
## [1.16.1] (Prowler v5.15.1) ## [1.16.1] (Prowler v5.15.1)
### Fixed ### Fixed

View File

@@ -61,5 +61,5 @@ def schedule_provider_scan(provider_instance: Provider):
"tenant_id": str(provider_instance.tenant_id), "tenant_id": str(provider_instance.tenant_id),
"provider_id": provider_id, "provider_id": provider_id,
}, },
countdown=1, # Avoid race conditions between the worker and the database countdown=5, # Avoid race conditions between the worker and the database
) )

View File

@@ -28,7 +28,7 @@ class TestScheduleProviderScan:
"tenant_id": str(provider_instance.tenant_id), "tenant_id": str(provider_instance.tenant_id),
"provider_id": str(provider_instance.id), "provider_id": str(provider_instance.id),
}, },
countdown=1, countdown=5,
) )
task_name = f"scan-perform-scheduled-{provider_instance.id}" task_name = f"scan-perform-scheduled-{provider_instance.id}"