Remove usage of Vulnerabilities::BulkEsOperationService inside DB transaction
Vulnerabilities::BulkEsOperationService.new(...).execute internally makes a Redis call as part of Elastic::ProcessBookkeepingService.track! here to update references for ES bookkeeping.
Ideally, a transaction should only contain database statements.
Avoid doing in a transaction block:
External network requests such as: Triggering Sidekiq jobs.
Creating this issue to identify places in the code base where Vulnerabilities::BulkEsOperationService.new(...).execute is used inside DB transaction and move them outside the transaction.
For context see:
Edited by 🤖 GitLab Bot 🤖