Function
web_dashboard
(detailed_metrics_dir, port)
Source from the content-addressed store, hash-verified
| 546 | default=8088, |
| 547 | ) |
| 548 | def web_dashboard(detailed_metrics_dir, port): |
| 549 | click.echo(f"Starting Pathway Live Data Framework Web Dashboard on port {port}...") |
| 550 | env = os.environ.copy() |
| 551 | env["PATHWAY_DETAILED_METRICS_DIR"] = detailed_metrics_dir |
| 552 | command = [ |
| 553 | "uvicorn", |
| 554 | "pathway.web_dashboard.dashboard:app", |
| 555 | "--host", |
| 556 | "0.0.0.0", |
| 557 | "--port", |
| 558 | str(port), |
| 559 | ] |
| 560 | subprocess.run(command, env=env) |
| 561 | |
| 562 | |
| 563 | @cli.group() |
Callers
nothing calls this directly
Tested by
no test coverage detected