INNER CODE UNIT · Python

_refresh_report

416rehman/DeepZero · src/deepzero/cli.py:327

    def _refresh_report(force: bool = False) -> None:
        if not force and time.monotonic() - last_written[0] < 15:
            return
        try:
            write_report(pipeline_def.work_dir, report_dir, config=pipeline_def.report)
            last_written[0] = time.monotonic()
        except (OSError, ValueError, KeyError, TypeError) as exc:
            log_report.debug("could not refresh the report: %s", exc)

    _refresh_report(force=True)
    console.print(f" report   [bold]{report_index.resolve().as_uri()}[/]")
    console.print(" [dim]open it now - it updates itself as results land[/]\n")

    runner.progress_hook = _refresh_report
    try:
        run_state = runner.run(target_path, run_state)
    finally:
        _refresh_report(force=True)  # settle the final state, no reload banner

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…