Skip to content

feat: enrich assign_server_event with outcome and configuration#577

Merged
kevineger merged 2 commits into
mainfrom
keger/telem-assign-server-outcome
Apr 29, 2026
Merged

feat: enrich assign_server_event with outcome and configuration#577
kevineger merged 2 commits into
mainfrom
keger/telem-assign-server-outcome

Conversation

@kevineger
Copy link
Copy Markdown
Member

@kevineger kevineger commented Apr 23, 2026

Captures the requested configuration (variant, accelerator, shape, version),
whether one or more fallback accelerators were attempted, and the final outcome
via a new nested AssignmentOutcome enum distinguishing success from
ASSIGNMENT_OUTCOME_ACCELERATOR_UNAVAILABLE,
ASSIGNMENT_OUTCOME_ALL_ACCELERATORS_UNAVAILABLE,
ASSIGNMENT_OUTCOME_TOO_MANY_ASSIGNMENTS,
ASSIGNMENT_OUTCOME_INSUFFICIENT_QUOTA, ASSIGNMENT_OUTCOME_DENYLISTED, and
ASSIGNMENT_OUTCOME_OTHER_FAILURE. The enum is intentionally distinct from the
top-level Outcome enum to avoid name collisions in generated code.

hadFallback is derived in assignServer by comparing the returned
assignment's accelerator to the requested one (success path), or by checking
the thrown AllAcceleratorsUnavailableError's attempted array length
(failure path).

Proto changes: cl/903978346

Comment thread src/jupyter/assignments.unit.test.ts Outdated
@kevineger kevineger force-pushed the keger/telem-assign-server-outcome branch from bdea926 to f14738b Compare April 29, 2026 17:09
Captures the requested configuration (variant, accelerator, shape,
version), whether one or more fallback accelerators were attempted,
and the final outcome via a new nested `AssignmentOutcome` enum
distinguishing success from
`ASSIGNMENT_OUTCOME_ACCELERATOR_UNAVAILABLE`,
`ASSIGNMENT_OUTCOME_ALL_ACCELERATORS_UNAVAILABLE`,
`ASSIGNMENT_OUTCOME_TOO_MANY_ASSIGNMENTS`,
`ASSIGNMENT_OUTCOME_INSUFFICIENT_QUOTA`,
`ASSIGNMENT_OUTCOME_DENYLISTED`, and
`ASSIGNMENT_OUTCOME_OTHER_FAILURE`. The enum is intentionally
distinct from the top-level `Outcome` enum to avoid name
collisions in generated code.

`hadFallback` is derived in `assignServer` by comparing the
returned assignment's accelerator to the requested one (success
path), or by checking the thrown
`AllAcceleratorsUnavailableError`'s `attempted` array length
(failure path).
@kevineger kevineger force-pushed the keger/telem-assign-server-outcome branch from f14738b to bf96b3e Compare April 29, 2026 19:53
@kevineger kevineger merged commit 52c6395 into main Apr 29, 2026
10 checks passed
@kevineger kevineger deleted the keger/telem-assign-server-outcome branch April 29, 2026 20:00
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.

2 participants