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

add concurrent checks #3

Merged
merged 1 commit into from
Apr 23, 2018
Merged

add concurrent checks #3

merged 1 commit into from
Apr 23, 2018

Conversation

brantleyr
Copy link
Contributor

No description provided.

@lphiri
Copy link
Contributor

lphiri commented Apr 23, 2018

Lets make the size of concurrent scans configurable (via an environment variable).

@@ -72,12 +73,16 @@ app.get('/queue', (req, res) => {
// Queue an Image ID
app.post('/queue/:id', bodyParser.json({limit: '50mb'}), (req, res) => {
console.log(`Incoming POST Queue for image ID ${req.params.id}...`);
let concurrentScanLimit = process.env.CONCURRENT_SCAN_LIMIT ? parseInt(process.env.CONCURRENT_SCAN_LIMIT) : 2;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lphiri added in the configurable limit checks here.

Copy link

@rexwhite rexwhite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eventually we should probably make another endpoint for changes to number of concurrent scans per node, but this is ok for tech preview.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants