[Rebase] Row dump removed, lint, knob read-site census
The debug PLE row dump is deleted; ruff findings on fork lines cleared; a read-site census test pins which fork knobs are read and where. Co-Authored-By: Hinata <hinata@idihore.id> Signed-off-by: MOVZX <movzx@yahoo.com>
This commit is contained in:
@@ -20,11 +20,7 @@ _POLL_INTERVAL_S = 0.1
|
||||
|
||||
def _validate_deadline(value: float, name: str) -> float:
|
||||
value = float(value)
|
||||
if (
|
||||
not math.isfinite(value)
|
||||
or value <= 0
|
||||
or value > _MAX_PROGRESS_DEADLINE_S
|
||||
):
|
||||
if not math.isfinite(value) or value <= 0 or value > _MAX_PROGRESS_DEADLINE_S:
|
||||
raise ValueError(
|
||||
f"{name} must be finite, greater than zero, and no greater than "
|
||||
f"{_MAX_PROGRESS_DEADLINE_S:g} seconds"
|
||||
@@ -123,10 +119,7 @@ class PleProgressMonitor:
|
||||
active = self._submission
|
||||
if active is None or active.sequence != sequence:
|
||||
raise RuntimeError("PLE fault correlation has no active submission")
|
||||
return (
|
||||
f"sequence:{active.sequence}"
|
||||
f"@begin:{active.started:.9f}"
|
||||
)
|
||||
return f"sequence:{active.sequence}@begin:{active.started:.9f}"
|
||||
|
||||
def completion_is_pending(self, sequence: int) -> bool:
|
||||
"""Whether this serving sequence has a retained, incomplete event.
|
||||
@@ -149,9 +142,7 @@ class PleProgressMonitor:
|
||||
|
||||
def begin(self, *, startup: bool, num_tokens: int) -> int:
|
||||
now = time.monotonic()
|
||||
budget = (
|
||||
self._startup_deadline_s if startup else self._serving_deadline_s
|
||||
)
|
||||
budget = self._startup_deadline_s if startup else self._serving_deadline_s
|
||||
with self._condition:
|
||||
active = self._submission
|
||||
if active is not None:
|
||||
|
||||
Reference in New Issue
Block a user