Skip to content

Commit 73dc4ac

Browse files
committed
now downloading job data from my personal drive link
1 parent 9a63b5c commit 73dc4ac

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

benchmark/job/cli.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import click
44

55
from benchmark.constants import DEFAULT_SCALE_FACTOR
6-
from benchmark.job.load_info import JobLoadInfo
76
from util.log import DBGYM_LOGGER_NAME
87
from util.shell import subprocess_run
98
from util.workspace import (
@@ -13,7 +12,8 @@
1312
link_result,
1413
)
1514

16-
JOB_TABLES_URL = "https://homepages.cwi.nl/~boncz/job/imdb.tgz"
15+
# JOB_TABLES_URL = "https://homepages.cwi.nl/~boncz/job/imdb.tgz" # This link stopped working for me
16+
JOB_TABLES_URL = "https://drive.google.com/uc?id=19m0zDpphAw0Bu9Irr_ta9EGr5k85hiN1"
1717
JOB_QUERY_NAMES = [
1818
"1a",
1919
"1b",
@@ -177,7 +177,8 @@ def _download_job_data(dbgym_cfg: DBGymConfig) -> None:
177177

178178
logging.getLogger(DBGYM_LOGGER_NAME).info(f"Downloading: {expected_symlink_dpath}")
179179
real_data_path = dbgym_cfg.cur_task_runs_data_path(mkdir=True)
180-
subprocess_run(f"curl -O {JOB_TABLES_URL}", cwd=real_data_path)
180+
# subprocess_run(f"curl -O {JOB_TABLES_URL}", cwd=real_data_path) # This is if we're using a non-Google-Drive link
181+
subprocess_run(f"gdown {JOB_TABLES_URL}", cwd=real_data_path)
181182
job_data_dpath = dbgym_cfg.cur_task_runs_data_path(
182183
default_tables_dname(DEFAULT_SCALE_FACTOR), mkdir=True
183184
)

dependencies/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,4 @@ Werkzeug==3.0.1
135135
wrapt==1.14.1
136136
zipp==3.17.0
137137
streamlit==1.39.0
138+
gdown==5.2.0

0 commit comments

Comments
 (0)