Issue #4086
Updated by jortel@redhat.com about 6 years ago
The ArtifactSaver stage creates Artifact using bulk_create() which will raise an IntegretyError on any constraint violation. The same artifact can be created concurrently during operations such as sync and upload when running more than 1 worker. The race condition exists between the QueryExistingArtifacts and ArtifactSaver stages. As a result, the un-handled IntegretyError will cause one of the operations to fail.
The impact on users is that syncs will randomly fail with an IntegretyError which will be very concerning.