Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop Dask parallel execution for runner #38

Merged
merged 10 commits into from
May 23, 2024
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
Loading