Skip to content

Commit

Permalink
Sleep in snakefile.
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-parker committed Jul 12, 2024
1 parent 0adfa05 commit b38506d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
11 changes: 11 additions & 0 deletions ena-submission/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,17 @@ rule get_ena_submission_list:
--log-level {params.log_level} \
"""

rule get_ena_submission_list_and_sleep:
input:
file="results/ena_submission_list.json"
output:
file="results/sleep.txt"
shell:
"""
sleep 360
touch {output.file}
"""

rule create_project:
"""
Create a project in ENA
Expand Down
6 changes: 2 additions & 4 deletions kubernetes/loculus/templates/ena-submission-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,9 @@ spec:
secretKeyRef:
name: database
key: password
command:
- /bin/sh
- -c
args:
- snakemake get_ena_submission_list && sleep 360 # Do not start submission process yet until on pods until better tested.
- snakemake
- get_ena_submission_list_and_sleep # Do not start submission process yet until on pods until better tested.
volumeMounts:
- name: loculus-ena-submission-config-volume
mountPath: /package/config/config.yaml
Expand Down

0 comments on commit b38506d

Please sign in to comment.