Skip to content

Conversation

vicenteherrera
Copy link

Initial implementation would wait fixed 2x10s after the image was uploaded to Secure because of number of retries code being always executed, then tried to get scan report.

That would be too much if the scan was already cached in Secure and immediately available, or too little if scan result was delayed (when the script says 'analyzed', it means it has received the image, not that the scan has finished).

Now if the scan report is available immediately, there is no delay getting it, and if it's not, a retry for the timeout period is done in incremental steps of 5s, 10s, 15s... to avoid overloading the backend when things get slow.

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.

1 participant