Skip to content
Snippets Groups Projects
Commit dbde5dfe authored by Dmitry Kalinkin's avatar Dmitry Kalinkin
Browse files

Snakefile: enable cache for fetch_epic

parent acc4d25a
No related branches found
No related tags found
No related merge requests found
Pipeline #102261 canceled
...@@ -123,7 +123,7 @@ get_data: ...@@ -123,7 +123,7 @@ get_data:
- mkdir "${DETECTOR_CONFIG}" - mkdir "${DETECTOR_CONFIG}"
- ln -s "${LOCAL_DATA_PATH}/sim_output" "${DETECTOR_CONFIG}/sim_output" - ln -s "${LOCAL_DATA_PATH}/sim_output" "${DETECTOR_CONFIG}/sim_output"
- ln -s "../results" "${DETECTOR_CONFIG}/results" - ln -s "../results" "${DETECTOR_CONFIG}/results"
# cache downloaded artifacts - mkdir -p "$SNAKEMAKE_OUTPUT_CACHE"
- ls -lrtha - ls -lrtha
retry: retry:
max: 2 max: 2
......
...@@ -24,6 +24,7 @@ def get_remote_path(path): ...@@ -24,6 +24,7 @@ def get_remote_path(path):
rule fetch_epic: rule fetch_epic:
output: output:
filepath="EPIC/{PATH}" filepath="EPIC/{PATH}"
cache: True
retries: 3 retries: 3
shell: """ shell: """
xrdcp --debug 2 root://dtn-eic.jlab.org//work/eic2/{output.filepath} {output.filepath} xrdcp --debug 2 root://dtn-eic.jlab.org//work/eic2/{output.filepath} {output.filepath}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment