entrypoint-aws-batch: Upload .snakemake/storage/ too #259
Merged
joverlee521 merged 2 commits intomasterfrom Jul 21, 2025
Merged
entrypoint-aws-batch: Upload .snakemake/storage/ too #259joverlee521 merged 2 commits intomasterfrom
joverlee521 merged 2 commits intomasterfrom
Conversation
Somehow accidentally committed an extra file in ba793ad
joverlee521
added a commit
to nextstrain/cli
that referenced
this pull request
Jul 18, 2025
When using Snakemakes storage support to download remote files, Snakemake stores the downloaded files in `.snakemake/storage` by default. This allows users to keep the remote files that were downloaded during the build on AWS Batch. Note that the storage path is configurable via Snakemake's `--local-storage-prefix`.¹ So if someone configures the storage path to a custom path within `.snakemake`, e.g. `.snakemake/foo`, then it would not be available in their downloaded workdir. I'm not even sure it's possible to configure the path in entrypoint-aws-batch for the docker-base image, so I've added a warning against using the Snakemake option if using the aws-batch runtime. Resolves #453 Related to nextstrain/docker-base#259 ¹ <https://github.com/snakemake/snakemake/blob/v9.6.3/src/snakemake/cli.py#L1463-L1469>
When using Snakemakes storage support to download remote files, Snakemake stores the downloaded files in `.snakemake/storage` by default. This allows users to keep the remote files that were downloaded during the build on AWS Batch. Note that the storage path is configurable via Snakemake's `--local-storage-prefix`.¹ So if someone configures the storage path to a custom path within `.snakemake`, e.g. `.snakemake/foo`, then it would not be available in their workdir. I'm not sure it's even possible to make this path configurable here, so I'm just going to warn against using it from the Nextstrain CLI. Related to nextstrain/cli#460 ¹ <https://github.com/snakemake/snakemake/blob/v9.6.3/src/snakemake/cli.py#L1456-L1462>
f1785ca to
13ae951
Compare
2 tasks
victorlin
approved these changes
Jul 21, 2025
Contributor
Author
|
Worked as expected in nextstrain/cli#460 (comment) |
joverlee521
added a commit
to nextstrain/cli
that referenced
this pull request
Jul 21, 2025
When using Snakemakes storage support to download remote files, Snakemake stores the downloaded files in `.snakemake/storage` by default. This allows users to keep the remote files that were downloaded during the build on AWS Batch. Note that the storage path is configurable via Snakemake's `--local-storage-prefix`.¹ So if someone configures the storage path to a custom path within `.snakemake`, e.g. `.snakemake/foo`, then it would not be available in their downloaded workdir. I'm not even sure it's possible to configure the path in entrypoint-aws-batch for the docker-base image, so I've added a warning against using the Snakemake option if using the aws-batch runtime. Resolves #453 Related to nextstrain/docker-base#259 ¹ <https://github.com/snakemake/snakemake/blob/v9.6.3/src/snakemake/cli.py#L1463-L1469>
joverlee521
added a commit
to nextstrain/cli
that referenced
this pull request
Jul 21, 2025
When using Snakemakes storage support to download remote files, Snakemake stores the downloaded files in `.snakemake/storage` by default. This allows users to keep the remote files that were downloaded during the build on AWS Batch. Note that the storage path is configurable via Snakemake's `--local-storage-prefix`.¹ So if someone configures the storage path to a custom path within `.snakemake`, e.g. `.snakemake/foo`, then it would not be available in their downloaded workdir. I'm not even sure it's possible to configure the path in entrypoint-aws-batch for the docker-base image, so I've added a warning against using the Snakemake option if using the aws-batch runtime. Resolves #453 Related to nextstrain/docker-base#259 ¹ <https://github.com/snakemake/snakemake/blob/v9.6.3/src/snakemake/cli.py#L1463-L1469>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of proposed changes
When using Snakemakes storage support to download remote files, Snakemake stores
the downloaded files in
.snakemake/storageby default. This allows users tokeep the remote files that were downloaded during the build on AWS Batch.
Note that the storage path is configurable via Snakemake's
--local-storage-prefix.¹ So if someone configures the storage path to a custompath within
.snakemake, e.g..snakemake/foo, then it would not be availablein their workdir. I'm not sure it's even possible to make this path configurable
here, so I'm just going to warn against using it from the Nextstrain CLI.
Related to nextstrain/cli#460
¹ https://github.com/snakemake/snakemake/blob/v9.6.3/src/snakemake/cli.py#L1456-L1462
Checklist