Allow cross-db transaction for Build#drop_with_exit_code!
When dropping a build with this method, it wraps the execution with a transaction. If this build; - Configured as auto-retry - Has a pipeline related to an MR - Has a TODO with that MR Then Ci::RetryBuildService; - Retries the job - Closes the TODO And those two updates should not be in a single transaction because they refer to different DBs. The next step is to remove this cross-db transaction.
Showing
Please register or sign in to comment