Skip to content

Commit

Permalink
merge tkexp
Browse files Browse the repository at this point in the history
  • Loading branch information
takashi kawase committed Oct 21, 2020
1 parent cf64f20 commit 5047dfe
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 22 deletions.
2 changes: 1 addition & 1 deletion config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ config:
libraryBucket: janelia-flylight-color-depth-${env:IMAGE_DATA_LEVEL, 'dev'}
libraryThumbnailsBucket: janelia-flylight-color-depth-thumbnails-${env:IMAGE_DATA_LEVEL, 'dev'}
alignmentTemplatesBucket: janelia-flylight-color-depth-${env:IMAGE_DATA_LEVEL, 'dev'}
searchBucket: janelia-neuronbridge-masks-tkdev
searchBucket: janelia-neuronbridge-searches-${env:SEARCH_DATA_LEVEL, 'dev'}
perDaySearchLimits: ${env:PER_DAY_SEARCH_LIMITS, 100}
concurrentSearchLimits: ${env:CONCURRENT_SEARCH_LIMITS, 10}
tracing: true
Expand Down
113 changes: 97 additions & 16 deletions search/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion search/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"aws-appsync": "^4.0.0",
"aws-sdk": "^2.720.0",
"aws-xray-sdk": "^3.0.1",
"geotiff": "^1.0.0-beta.13",
"geotiff": "^1.0.0-beta.14",
"graphql": "^15.3.0",
"graphql-tag": "^2.10.4",
"isomorphic-fetch": "^2.2.1",
Expand Down
8 changes: 4 additions & 4 deletions search/src/main/nodejs/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const getAllKeys = async params => {
};

// Retrieve a file from S3
exports.getObjectDataArray = async (bucket, key, defaultValue) => {
const getObjectDataArray = async (bucket, key, defaultValue) => {
try {
if (DEBUG)
console.log(`Getting object from ${bucket}:${key}`);
Expand Down Expand Up @@ -67,9 +67,7 @@ const getObject = async (bucket, key, defaultValue) => {
}
};

exports.getObject = getObject;

exports.sleep = async (ms) => {
const sleep = async (ms) => {
return new Promise(resolve => setTimeout(resolve, ms));
}

Expand Down Expand Up @@ -335,6 +333,8 @@ const verifyKey = async (Bucket, Key) => {

module.exports = {
DEBUG,
sleep: sleep,
getObjectDataArray: getObjectDataArray,
getAllKeys: getAllKeys,
getObject: getObject,
getObjectWithRetry: getObjectWithRetry,
Expand Down

0 comments on commit 5047dfe

Please sign in to comment.