Skip to content

Commit f9a38e1

Browse files
committed
fix env, add result check for genomes too
1 parent d78fec1 commit f9a38e1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,6 @@ RUN echo '/repository/user/default-path = "/home/user/ncbi"' >> ~/.ncbi/user-set
7777
RUN echo '/repository/user/main/public/cache-disabled = "true"' >> ~/.ncbi/user-settings.mkfg
7878
RUN echo '/tools/prefetch/download_to_cache = "false"' >> ~/.ncbi/user-settings.mkfg
7979

80-
ENV RAYON_NUM_THREADS 3
80+
ENV RAYON_NUM_THREADS=3
8181
ENTRYPOINT ["/bin/bash", "/shell-hook"]
8282
CMD ["celery", "-A", "wort.blueprints.compute.tasks", "worker", "-Q", "compute_small,compute_medium,genomes", "--without-gossip", "--without-mingle", "--without-heartbeat", "-l", "INFO", "-c", "1"]

wort/blueprints/compute/tasks.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ def compute_genomes(accession, path, name):
132132
# http://www.pixelbeat.org/programming/sigpipe_handling.html
133133
if e.returncode != 141:
134134
raise e
135+
else:
136+
result = result
135137

136138
# if file is empty, consider it an error and sift
137139
# through logs later to figure out better error control

0 commit comments

Comments
 (0)