Repository navigation
akernel-sdk 0.2.0rc7
Pre-release
Pre-release
This release candidate adds actionable scheduling errors to the public Python SDK.
Changes
- Catch
SchedulingErrorfor confirmed scheduling cancellations, orInsufficientResourcesErrorwhen CPU, memory or disk shortages contribute and no worker is eligible. Existingexcept BackendOperationErrorhandlers remain compatible. - Inspect
reasons,resource_shortagesandsuggestions; messages include readable requested resources, all reported blockers and recovery advice for resource, runtime/device, placement, worker and volume constraints. - Preserve original service codes, retry/outcome directives, request identities, raw diagnostics and native exception causes. Confirmed cancellation remains one attempt without backoff; uncertain outcomes retain the pinned native client's existing same-operation retries.
- Keep unexplained zero-eligibility snapshots distinct from missing workers and resource shortages. Global per-dimension maxima are not presented as usable capacity for the request.
- Document the retained scheduling diagnostic schema and update the runtime example and installed-distribution regression checks.
Installation
python -m pip install --upgrade 'akernel-sdk==0.2.0rc7'The declared backend dependency remains adx-environment==0.1.0rc4.
Validation
- 540 SDK unit tests and 35 benchmark-driver tests, Ruff and mypy.
- 16 scheduling regression tests, including the actual pinned client's JSON/SSE parsing with HTTP I/O mocked and attempt/backoff/identity assertions.
- Wheel and source distribution built, checked by twine and independently installed outside the checkout; dependency, public API and CLI smoke checks passed.