prole/knoe/ops/status.py
chrisfu 4ee2b259c9 Checkpoint: rename installer to knoe + harden db build context
- Add build-context helper to copy Docker context safely (ignore runtime data, keep symlinks)

- Update UI and core actions to use ~/.prole/build and shared copy helper

- Add/adjust tests and scripts; introduce knoe ops helpers and update manifests

Co-authored-by: Junie <junie@jetbrains.com>
2026-03-22 01:45:21 -07:00

16 lines
379 B
Python

from __future__ import annotations
import time
from typing import Callable
def wait_for(predicate: Callable[[], bool], *, timeout_s: float = 60.0, poll_s: float = 1.0) -> bool:
"""Minimal shared readiness helper."""
end = time.time() + timeout_s
while time.time() < end:
if predicate():
return True
time.sleep(poll_s)
return False