Skip to content

remote_files: Add support for directly using local cache - #87

Open
joverlee521 wants to merge 1 commit into
mainfrom
use-local-cache
Open

joverlee521 wants to merge 1 commit into
mainfrom
use-local-cache

Conversation

@joverlee521

Copy link
Copy Markdown
Contributor

Description of proposed changes

The Snakemake storage usually checks the existence and revalidates remote files before using the local cache, which can lead to errors when running the workflow offline even if the local cache already exists.

This change adds support to directly use the local cache if it exists and bypass the remote file check when

  1. the config parameter use_remote_files is False
  2. the environment variable NEXTSTRAIN_REMOTE_FILES is False
  3. the workflow is running offline

Based on discussions in nextstrain/public#47 and changes tested in measles repo
nextstrain/measles@60634e2...b238682

Related issue(s)

Part of nextstrain/public#47

Checklist

  • Checks pass
  • If adding a script, add an entry for it in the README.

The Snakemake storage usually checks the existence and revalidates remote
files before using the local cache, which can lead to errors when running
the workflow offline even if the local cache already exists.

This change adds support to directly use the local cache if it exists
and bypass the remote file check when
1. the config parameter `use_remote_files` is False
2. the environment variable `NEXTSTRAIN_REMOTE_FILES` is False
3. the workflow is running offline

Based on discussions in <nextstrain/public#47>
and changes tested in measles repo
<nextstrain/measles@60634e2...b238682>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant