INNER CODE UNIT · Python

initialize_batch

lij768423-svg/grok-register-panel · batch_traffic.py:210

def initialize_batch(
    path: str | os.PathLike[str],
    batch_id: str,
    *,
    target: int,
    workers: int,
) -> dict:
    now = time.time()
    metrics = _empty_metrics()
    metrics.update(
        {
            "batch_id": str(batch_id)[:96],
            "running": True,
            "started_at": now,
            "updated_at": now,
            "target": max(1, int(target)),
            "workers": max(1, int(workers)),
        }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…