Skip to content

Commit 46bc2df

Browse files
author
EC2 Default User
committed
Increasing timeout for chembl import beyond an hour.
1 parent f8c3462 commit 46bc2df

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

lib/baseline-stack.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ export class BaselineStack extends cdk.Stack {
135135

136136
loadChemblAssociation.addPropertyOverride('Parameters',{
137137
databaseSecretArn: [chemblDBSecret.secretArn],
138-
databaseHostName: [chemblDb.dbInstanceEndpointAddress]
138+
databaseHostName: [chemblDb.dbInstanceEndpointAddress],
139+
executionTimeout: ['7200']
139140
});
140141

141142

scripts/ssmdoc.importchembl25.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,21 @@
99
"databaseHostName": {
1010
"type": "String",
1111
"description": "Hostname of the database server"
12+
},
13+
"executionTimeout": {
14+
"type": "String",
15+
"default": "7200",
16+
"description": "(Optional) The time in seconds for a command to complete before it is considered to have failed. Default is 3600 (1 hour). Maximum is 172800 (48 hours).",
17+
"allowedPattern": "([1-9][0-9]{0,3})|(1[0-9]{1,4})|(2[0-7][0-9]{1,3})|(28[0-7][0-9]{1,2})|(28800)"
1218
}
19+
1320
},
1421
"mainSteps":[
1522
{
1623
"action":"aws:runShellScript",
1724
"name":"DownloadAndImportChembl25intoDatabase",
1825
"inputs":{
19-
"timeoutSeconds":"7200",
26+
"timeoutSeconds": "{{ executionTimeout }}",
2027
"runCommand": [
2128
"sudo yum install jq -y",
2229
"currentRegion=$(curl -s http://169.254.169.254/latest/dynamic/instance-identity/document|jq -r .region)",

0 commit comments

Comments
 (0)