Skip to content

Commit ed96103

Browse files
committed
Increase and allow configure visibility timeout
1 parent ce044dd commit ed96103

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

Diff for: README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ vulnerability-db-consumer -c _resources/config/local.toml
1616
## How to run the Vulnerability DB in development mode
1717

1818
You can test the Vulnerability DB Consumer locally in your machine.
19-
The commands bellow will launch the necessary components required by the
19+
The commands bellow will launch the necessary components required by the
2020
application.
2121

2222
```bash
@@ -80,6 +80,7 @@ Those are the variables you have to use:
8080
|PG_CA_B64|A base64 encoded CA certificate||
8181
|SQS_NUMBER_OF_PROCESSORS|Number of concurrent SQS processors|Default: 10|
8282
|SQS_QUEUE_ARN|Checks queueu ARN|arn:aws:sqs:xxx:123456789012:yyy|
83+
|SQS_VISIBILITY_TIMEOUT|In seconds|1800|
8384
|SNS_TOPIC_ARN|ARN of topic to publish new vulnerabilities|arn:aws:sns:xxx:123456789012:yyy|
8485
|RESULTS_URL|External vulcan-results URL|https://results.vulcan.com|
8586
|RESULTS_INTERNAL_URL|Internal vulcan-results URL|http://vulcan-results|

Diff for: config.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ name = "$PG_NAME"
1717
[sqs]
1818
number_of_processors = $SQS_NUMBER_OF_PROCESSORS
1919
wait_time = 20
20-
timeout = 600
20+
timeout = $SQS_VISIBILITY_TIMEOUT
2121
queue_arn = "$SQS_QUEUE_ARN"
2222
endpoint = "$AWS_SQS_ENDPOINT"
2323

Diff for: run.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44

55
set -e
66

7-
export PG_SSLMODE=${PG_SSLMODE:-prefer}
8-
export SQS_NUMBER_OF_PROCESSORS=${SQS_NUMBER_OF_PROCESSORS:-10}
7+
export PG_SSLMODE="${PG_SSLMODE:-prefer}"
8+
export SQS_NUMBER_OF_PROCESSORS="${SQS_NUMBER_OF_PROCESSORS:-10}"
9+
export SQS_VISIBILITY_TIMEOUT="${SQS_VISIBILITY_TIMEOUT:-1800}"
910

1011
# Apply env variables
1112
envsubst < config.toml > run.toml

0 commit comments

Comments
 (0)