Skip to content

Cache icurl() results within a run to avoid redundant duplicate API c… - #499

Open
kshchekut wants to merge 1 commit into
datacenter:masterfrom
kshchekut:issue-485-icurl-cache
Open

kshchekut wants to merge 1 commit into
datacenter:masterfrom
kshchekut:issue-485-icurl-cache

Conversation

@kshchekut

Copy link
Copy Markdown

…alls

Several checks independently query the same APIC class/DN, causing identical queries to be fetched multiple times in the same run. Add a per-run cache keyed on (apitype, query, page_size), guarded by a per-query lock so concurrent callers of the same query wait for the first fetch instead of all hitting the APIC, while distinct queries still run fully in parallel. Failed fetches are not cached.

No change to check logic or results; verified with full test suite and live fabric runs (identical PASS/FAIL/MANUAL/N/A/ERROR summaries before and after).

Fixes #485

…alls

Several checks independently query the same APIC class/DN, causing
identical queries to be fetched multiple times in the same run. Add a
per-run cache keyed on (apitype, query, page_size), guarded by a
per-query lock so concurrent callers of the same query wait for the
first fetch instead of all hitting the APIC, while distinct queries
still run fully in parallel. Failed fetches are not cached.

No change to check logic or results; verified with full test suite
and live fabric runs (identical PASS/FAIL/MANUAL/N/A/ERROR summaries
before and after).

Fixes datacenter#485

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cache icurl() results within a run to avoid redundant duplicate API calls

1 participant