fix(iwooos): bound security source concurrency
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 2m34s
CD Pipeline / post-deploy-checks (push) Has been cancelled
CD Pipeline / build-and-deploy (push) Has been cancelled
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 2m34s
CD Pipeline / post-deploy-checks (push) Has been cancelled
CD Pipeline / build-and-deploy (push) Has been cancelled
This commit is contained in:
@@ -15,8 +15,9 @@ from src.db.base import get_db_context
|
||||
logger = structlog.get_logger(__name__)
|
||||
|
||||
_SCHEMA_VERSION = "iwooos_security_asset_control_plane_v1"
|
||||
_QUERY_TIMEOUT_SECONDS = 20.0
|
||||
_SOURCE_QUERY_TIMEOUT_SECONDS = 4.0
|
||||
_QUERY_TIMEOUT_SECONDS = 12.0
|
||||
_SOURCE_QUERY_TIMEOUT_SECONDS = 3.0
|
||||
_SOURCE_CONCURRENCY = 3
|
||||
_CACHE_TTL_SECONDS = 30.0
|
||||
_DISCOVERY_FRESHNESS_SECONDS = 2 * 60 * 60
|
||||
_WINDOW_HOURS = 24
|
||||
@@ -1372,7 +1373,7 @@ class IwoooSSecurityAssetControlPlaneService:
|
||||
return payload
|
||||
|
||||
async def _load_snapshot(self) -> dict[str, Any]:
|
||||
source_limiter = asyncio.Semaphore(1)
|
||||
source_limiter = asyncio.Semaphore(_SOURCE_CONCURRENCY)
|
||||
source_results = await asyncio.gather(
|
||||
_read_public_source(
|
||||
project_id="awoooi",
|
||||
|
||||
Reference in New Issue
Block a user