-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #365 from neicnordic/bigpicture_sync #minor
[Bigpicture] data replication services #minor
- Loading branch information
Showing
48 changed files
with
2,178 additions
and
74 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
cd shared || true | ||
|
||
if [ "$STORAGETYPE" = "posix" ]; then | ||
exit 0 | ||
fi | ||
|
||
# check bucket for synced files | ||
for file in NA12878.bai NA12878_20k_b37.bai; do | ||
RETRY_TIMES=0 | ||
until [ "$(s3cmd -c direct ls s3://sync/test_dummy.org/"$file")" != "" ]; do | ||
RETRY_TIMES=$((RETRY_TIMES + 1)) | ||
if [ "$RETRY_TIMES" -eq 30 ]; then | ||
echo "::error::Time out while waiting for files to be synced" | ||
exit 1 | ||
fi | ||
sleep 2 | ||
done | ||
done | ||
|
||
echo "files synced successfully" | ||
|
||
echo "waiting for sync-api to send messages" | ||
RETRY_TIMES=0 | ||
until [ "$(curl -su guest:guest http://rabbitmq:15672/api/queues/sda/catch_all.dead/ | jq -r '.messages_ready')" -eq 5 ]; do | ||
echo "waiting for sync-api to send messages" | ||
RETRY_TIMES=$((RETRY_TIMES + 1)) | ||
if [ "$RETRY_TIMES" -eq 30 ]; then | ||
echo "::error::Time out while waiting for sync-api to send messages" | ||
exit 1 | ||
fi | ||
sleep 2 | ||
done |
Oops, something went wrong.