Skip to content

akernel-sdk 0.2.0rc7

Pre-release
Pre-release

Choose a tag to compare

@rcyw rcyw released this 12 Nov 14:23
7fe311e

This release candidate adds actionable scheduling errors to the public Python SDK.

Changes

  • Catch SchedulingError for confirmed scheduling cancellations, or InsufficientResourcesError when CPU, memory or disk shortages contribute and no worker is eligible. Existing except BackendOperationError handlers remain compatible.
  • Inspect reasons, resource_shortages and suggestions; 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.

PR: #164
Issue: #163