Skip to content

Commit

Permalink
Merge pull request #38 from slacgismo/develop-parallel
Browse files Browse the repository at this point in the history
Develop Dask parallel execution for runner
  • Loading branch information
MitchellAV authored May 23, 2024
2 parents 4a03c57 + 4f9e957 commit 5b716b5
Show file tree
Hide file tree
Showing 9 changed files with 808 additions and 171 deletions.
5 changes: 2 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3.8"

services:
db:
image: postgres:15-alpine
Expand Down Expand Up @@ -111,14 +109,15 @@ services:
- .env
ports:
- "8500:8500"
- "8787:8787"
depends_on:
- api
- s3
- sqs
volumes:
- ./workers/current_evaluation:/root/worker/current_evaluation
- ./workers/logs:/root/worker/logs
- ./workers/tmp:/tmp
# - ./workers/tmp:/tmp
- ./workers/requirements.txt:/root/worker/requirements.txt
- ./workers/src:/root/worker/src
restart: unless-stopped
Expand Down
2 changes: 0 additions & 2 deletions prod.docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3.8"

services:
db:
image: postgres:15-alpine
Expand Down
12 changes: 9 additions & 3 deletions valhub/base/errorcodes.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"4": "No system metadata returned from API",
"5": "Configuration file not found in current evaluation directory",
"6": "Required function name not found within submission python file",
"7": "Failure cutoff met for submission evaluation and execution has been terminated"
"7": "Failure cutoff met for submission evaluation and execution has been terminated",
"8": "Submission result length does not match ground truth length",
"500": "Internal server error"
},
"wr": {
"1": "Error uploading file to s3",
Expand All @@ -19,9 +21,13 @@
"8": "No file metadata found in API for analysis ID",
"9": "Not all ground truth data files found in s3 bucket for analysis",
"10": "Not all analytical data files found in s3 bucket for analysis",
"11": "Runner module does not have a 'run' function"
"11": "Runner module does not have a 'run' function",
"12": "Error posting Error Report to API",
"13": "API did not return a valid response",
"500": "Internal server error"
},
"sb": {
"1": ""
"1": "Submission function exceeded maximum execution time",
"500": "Internal server error"
}
}
5 changes: 4 additions & 1 deletion workers/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ boto3
pandas
numpy
seaborn
matplotlib
matplotlib
dask
distributed
bokeh
33 changes: 33 additions & 0 deletions workers/src/errorcodes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"op": {
"1": "Submission file is not a valid zipped file",
"2": "Error installing Python submission dependencies",
"3": "Failed to get system metadata information",
"4": "No system metadata returned from API",
"5": "Configuration file not found in current evaluation directory",
"6": "Required function name not found within submission python file",
"7": "Failure cutoff met for submission evaluation and execution has been terminated",
"8": "Submission result length does not match ground truth length",
"500": "Internal server error"
},
"wr": {
"1": "Error uploading file to s3",
"2": "Error downloading file from s3",
"3": "No files found in s3 bucket for analysis",
"4": "Error updating submission result to API",
"5": "Error updating submission status to API",
"6": "Required evaluation files not found in s3 bucket",
"7": "File metadata for file ID not found in API",
"8": "No file metadata found in API for analysis ID",
"9": "Not all ground truth data files found in s3 bucket for analysis",
"10": "Not all analytical data files found in s3 bucket for analysis",
"11": "Runner module does not have a 'run' function",
"12": "Error posting Error Report to API",
"13": "API did not return a valid response",
"500": "Internal server error"
},
"sb": {
"1": "Submission function exceeded maximum execution time",
"500": "Internal server error"
}
}
3 changes: 2 additions & 1 deletion workers/src/logging_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
"stdout",
"file",
"json_file"
]
],
"propagate": false
}
}
}
Loading

0 comments on commit 5b716b5

Please sign in to comment.