Skip to content

Commit

Permalink
Merge branch 'no-internet' into 'dev'
Browse files Browse the repository at this point in the history
adding check for internet connectivity

See merge request epi2melabs/workflow-containers/wf-artic!75
  • Loading branch information
mattdmem committed Dec 1, 2021
2 parents 49861c8 + 98c6d9d commit 66e0855
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [unreleased]
### Fixed
- Pangolin update step now checks for internet connection

## [v0.3.6]
### Changes
- Pangolin updated to 3.1.16 (Will now call B.1.1.529 successfully)
Expand Down
11 changes: 10 additions & 1 deletion main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,16 @@ process pangolin {
path "lineage_report.csv", emit: report
path "pangolin.version", emit: version
"""
pangolin --update
# Check to see if the box running the workflow has internet connectivity
EXIT_CODE=0
wget -q --spider --timeout 10 http://nanoporetech.com || EXIT_CODE=\$?
if [ \${EXIT_CODE} -eq 0 ]; then
pangolin --update
else
echo "Offline"
fi
pangolin --all-versions 2>&1 | sed 's/: /,/' > pangolin.version
pangolin consensus.fasta
"""
Expand Down

0 comments on commit 66e0855

Please sign in to comment.