anchore / ci-tools

Contains scripts for running anchore engine in CI pipelines
Apache License 2.0
34 stars 34 forks source link

Failed to run a concurrent scanning jobs for the same inline scanner #28

Closed novy4 closed 4 years ago

novy4 commented 4 years ago

The problem

When a second scanning job is starting while a first job is still in progress, the second job gets failed scan after a timeout.

Environment

Gitlab+K8S

Details

I am using one scanner for several microservice pipelines, I am getting sometimes "scan job failed". I assume that this is happening when there is already one job in progress and the second one is waiting for the first one to complete its job till it gets timeout...

Actual Behaviour

The second scan job gets failed status as a result...

Expected Behaviour

Expecting to run multiple scanning jobs at the same time. How can I setup my inline scanner for that?

How do you reproduce the error?

Run several pipelines for different microservices one by one...