mirror of
https://github.com/prowler-cloud/prowler.git
synced 2025-12-19 05:17:47 +00:00
fix(beat): Increase scheduled scans countdown to 5 seconds (#9558)
This commit is contained in:
committed by
GitHub
parent
d292c6e58a
commit
79ac7cf6d4
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -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}"
|
||||||
|
|||||||
Reference in New Issue
Block a user