Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tickets/PREOPS-4603: prepare schedview's scheduler_dashboard app for running at USDF w/ k8 #54

Merged
merged 2 commits into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ RUN micromamba install -y -n base -f /home/${MAMBA_USER}/schedview/container_env
micromamba clean --all --yes
ARG MAMBA_DOCKERFILE_ACTIVATE=1
RUN python -m pip install /home/$MAMBA_USER/schedview --no-deps
ARG TEST_DATA_DIR=/home/${MAMBA_USER}/schedview/test_data
ARG TEST_DATA_INDEX=https://s3df.slac.stanford.edu/data/rubin/sim-data/sched_pickles/test_snapshots.html
RUN mkdir -p ${TEST_DATA_DIR} && \
wget --no-parent --directory-prefix=${TEST_DATA_DIR} --no-directories --recursive ${TEST_DATA_INDEX}

# Container execution
ENV RUBIN_SIM_DATA_DIR=/home/${MAMBA_USER}/schedview/rubin_sim_data
Expand Down
1 change: 1 addition & 0 deletions container_environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ dependencies:
- param
- git
- pip
- wget
9 changes: 7 additions & 2 deletions schedview/app/scheduler_dashboard/scheduler_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -1703,11 +1703,16 @@
def scheduler_app_with_params():
return scheduler_app(**commandline_args)

app_dict = {"dashboard": scheduler_app_with_params}
prefix = "/schedview-snapshot"
print(f"prefix: {prefix}, app_dict keys = {list(app_dict.keys())}")

Check warning on line 1708 in schedview/app/scheduler_dashboard/scheduler_dashboard.py

View check run for this annotation

Codecov / codecov/patch

schedview/app/scheduler_dashboard/scheduler_dashboard.py#L1706-L1708

Added lines #L1706 - L1708 were not covered by tests

pn.serve(
scheduler_app_with_params,
app_dict,
port=scheduler_port,
title="Scheduler Dashboard",
show=True,
show=False,
prefix=prefix,
start=True,
autoreload=True,
threaded=True,
Expand Down
Loading