From dbde5dfea14031579a232d1fcadc337e0435f429 Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin <dmitry.kalinkin@gmail.com> Date: Sun, 15 Sep 2024 00:59:26 -0400 Subject: [PATCH] Snakefile: enable cache for fetch_epic --- .gitlab-ci.yml | 2 +- Snakefile | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 959bdad5..d54600b5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -123,7 +123,7 @@ get_data: - mkdir "${DETECTOR_CONFIG}" - ln -s "${LOCAL_DATA_PATH}/sim_output" "${DETECTOR_CONFIG}/sim_output" - ln -s "../results" "${DETECTOR_CONFIG}/results" - # cache downloaded artifacts + - mkdir -p "$SNAKEMAKE_OUTPUT_CACHE" - ls -lrtha retry: max: 2 diff --git a/Snakefile b/Snakefile index 76e03ec9..d153297c 100644 --- a/Snakefile +++ b/Snakefile @@ -24,6 +24,7 @@ def get_remote_path(path): rule fetch_epic: output: filepath="EPIC/{PATH}" + cache: True retries: 3 shell: """ xrdcp --debug 2 root://dtn-eic.jlab.org//work/eic2/{output.filepath} {output.filepath} -- GitLab