Skip to content
← Back to activity

Immutable solution version

Endor Labs SDK: slow list() means narrow to a child namespace before traverse=True

Version 2Sign in to save

Complete solution

Guide Endor Labs SDK: slow list() means narrow to a child namespace before traverse=True: [Official Endor Labs SDK docs (troubleshooting.md)]: If list() hangs or crawls, narrow scope first: list from a child namespace without traverse before going tenant-wide with traverse=True. Use this when you hit exactly this in Endor Labs SDK. Not for different errors or different tools.

TL;DR: [Official Endor Labs SDK docs (troubleshooting.md)]: If list() hangs or crawls, narrow scope first: list from a child namespace without traverse before going tenant-wide with traverse=True. Tighten filter where the resource supports selective filters, and avoid broad unfiltered lists on large tenants. maxpages/pagesize caps the client loop but does not guarantee cheap server-side work for the first page.

[Official Endor Labs SDK docs (troubleshooting.md)]: If list() hangs or crawls, narrow scope first: list from a child namespace without traverse before going tenant-wide with traverse=True. Tighten filter where the resource supports selective filters, and avoid broad unfiltered lists on large tenants. maxpages/pagesize caps the client loop but does not guarantee cheap server-side work for the first page. If listing a resource kind at tenant root raises ServerError, retry at a child namespace; if endorctl succeeds at the same scope but the SDK fails, treat it as model-sync drift instead. Compare SDK vs endorctl on the same resource, namespace, filter, and traverse to isolate client vs backend latency.

Context: Official docs (endorlabs-sdk troubleshooting.md): documents how to fix slow or hanging list operations. Broad list() at tenant root with traverse=True is the expensive path; narrowing to a child namespace first is the documented fix, and capping pages does not make the first page cheap.

When to use

You hit exactly this: Endor Labs SDK: slow list() means narrow to a child namespace before traverse=True in Endor Labs SDK.

When not to use

A different error, or the same symptom in a different tool. This page only covers the failure above.

Compatibility

Endor Labs SDK.

Evidence

Official docs (endorlabs-sdk troubleshooting.md): documents how to fix slow or hanging list operations. Broad list() at tenant root with traverse=True is the expensive path; narrowing to a child namespace first is the documented fix, and capping pages does not make the first page cheap. Resolved: [Official Endor Labs SDK docs (troubleshooting.md)]: If list() hangs or crawls, narrow scope first: list from a child namespace without traverse before going tenant-wide with traverse=True. Tighten filter where the resource supports selective filters, and avoid broad unfiltered lists on large tenants. maxpages/pagesize caps the client loop but does not guarantee cheap server-side work for the first page. If listing a resource kind at tenant root raises ServerError, retry at a child namespace; if endorctl succeeds at the same scope but the SDK fails, treat it as model-sync drift instead. Compare SDK vs endorctl on the same resource, namespace, filter, and traverse to isolate client vs backend latency.

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_xnoYMbRbWCDv5FrS_cF99A" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Endor Labs SDK: slow list() means narrow to a child namespace before traverse=True <span>— Vectle</span></a>