Skip to content

Commit

Permalink
feat: do not retry for client exceptions. code review
Browse files Browse the repository at this point in the history
Signed-off-by: Ruben Romero Montes <rromerom@redhat.com>
  • Loading branch information
ruromero committed Feb 3, 2025
1 parent 42f8d6c commit dfa0dd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cve/pipeline/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ async def _inner():

async with aiohttp.ClientSession() as session:

intel_retriever = IntelRetriever(session=session)
intel_retriever = IntelRetriever(session=session, retry_on_client_errors=run_config.general.retry_on_client_errors)

intel_coros = [intel_retriever.retrieve(vuln_id=cve.vuln_id) for cve in message.input.scan.vulns]

Expand Down Expand Up @@ -243,7 +243,7 @@ async def _inner():

async with aiohttp.ClientSession() as session:

vuln_dep_checker = VulnerableDependencyChecker(session=session, image=image, sbom_list=sbom)
vuln_dep_checker = VulnerableDependencyChecker(session=session, image=image, sbom_list=sbom, retry_on_client_errors=run_config.general.retry_on_client_errors)

await vuln_dep_checker.load_dependencies()

Expand Down

0 comments on commit dfa0dd5

Please sign in to comment.