Skip to content

Commit

Permalink
fix env, add result check for genomes too
Browse files Browse the repository at this point in the history
  • Loading branch information
luizirber committed Feb 8, 2025
1 parent d78fec1 commit f9a38e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,6 @@ RUN echo '/repository/user/default-path = "/home/user/ncbi"' >> ~/.ncbi/user-set
RUN echo '/repository/user/main/public/cache-disabled = "true"' >> ~/.ncbi/user-settings.mkfg
RUN echo '/tools/prefetch/download_to_cache = "false"' >> ~/.ncbi/user-settings.mkfg

ENV RAYON_NUM_THREADS 3
ENV RAYON_NUM_THREADS=3
ENTRYPOINT ["/bin/bash", "/shell-hook"]
CMD ["celery", "-A", "wort.blueprints.compute.tasks", "worker", "-Q", "compute_small,compute_medium,genomes", "--without-gossip", "--without-mingle", "--without-heartbeat", "-l", "INFO", "-c", "1"]
2 changes: 2 additions & 0 deletions wort/blueprints/compute/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ def compute_genomes(accession, path, name):
# http://www.pixelbeat.org/programming/sigpipe_handling.html
if e.returncode != 141:
raise e
else:
result = result

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

0 comments on commit f9a38e1

Please sign in to comment.