FailedToPersistDataError race condition in Sidekiq

Description

The following error is visible in Sentry: https://sentry.gitlab.net/gitlab/gitlabcom/issues/1896601/

Ci::BuildTraceChunk::FailedToPersistDataError

Data migration race condition detected
store: fog

It is not clear why this is happening because we are reloading an object inside a write lock.

/cc @ayufan

Edited by Grzegorz Bizon